slightly fixed ps2 build

This commit is contained in:
aap 2020-07-28 16:27:20 +02:00
parent aa627a8f2c
commit 3eedea8285
4 changed files with 15 additions and 12 deletions

View File

@ -237,7 +237,7 @@ project "ps2test"
libdirs { "$(PS2SDK)/ee/lib" } libdirs { "$(PS2SDK)/ee/lib" }
links { "librw" } links { "librw" }
-- "c -lc" is a hack because we need -lc twice for some reason -- "c -lc" is a hack because we need -lc twice for some reason
links { "c", "kernel", "mf" } links { "c -lc", "kernel", "mf" }
--project "ps2rastertest" --project "ps2rastertest"
-- kind "ConsoleApp" -- kind "ConsoleApp"

View File

@ -233,3 +233,4 @@ Charset::printBuffered(const char *str, int32 x, int32 y, bool32 hideSpaces)
} }
#endif #endif

View File

@ -96,7 +96,7 @@ Texture *readNativeTexture(Stream *stream);
void writeNativeTexture(Texture *tex, Stream *stream); void writeNativeTexture(Texture *tex, Stream *stream);
uint32 getSizeNativeTexture(Texture *tex); uint32 getSizeNativeTexture(Texture *tex);
enum : uint32 { enum {
D3DFMT_UNKNOWN = 0xFFFFFFFF, D3DFMT_UNKNOWN = 0xFFFFFFFF,
/* Swizzled formats */ /* Swizzled formats */

View File

@ -210,11 +210,13 @@ namespace null {
void beginUpdate(Camera*); void beginUpdate(Camera*);
void endUpdate(Camera*); void endUpdate(Camera*);
void clearCamera(Camera*, RGBA *col, uint32 mode); void clearCamera(Camera*, RGBA *col, uint32 mode);
void showRaster(Raster*); void showRaster(Raster*, uint32 flags);
void setRenderState(int32 state, void *value); void setRenderState(int32 state, void *value);
void *getRenderState(int32 state); void *getRenderState(int32 state);
bool32 rasterRenderFast(Raster *raster, int32 x, int32 y);
Raster *rasterCreate(Raster*); Raster *rasterCreate(Raster*);
uint8 *rasterLock(Raster*, int32 level, int32 lockMode); uint8 *rasterLock(Raster*, int32 level, int32 lockMode);
void rasterUnlock(Raster*, int32 level); void rasterUnlock(Raster*, int32 level);
@ -229,14 +231,14 @@ namespace null {
void im2DRenderLine(void*, int32, int32, int32); void im2DRenderLine(void*, int32, int32, int32);
void im2DRenderTriangle(void*, int32, int32, int32, int32); void im2DRenderTriangle(void*, int32, int32, int32, int32);
void im2DRenderPrimitive(PrimitiveType, void*, int32); void im2DRenderPrimitive(PrimitiveType, void*, int32);
void im2DRenderIndexedPrimitive(PrimitiveType, void im2DRenderIndexedPrimitive(PrimitiveType, void*, int32, void*, int32);
void*, int32, void*, int32);
void im3DTransform(void *vertices, int32 numVertices, Matrix *world); void im3DTransform(void *vertices, int32 numVertices, Matrix *world, uint32 flags);
void im3DRenderIndexed(PrimitiveType primType, void *indices, int32 numIndices); void im3DRenderPrimitive(PrimitiveType primType);
void im3DRenderIndexedPrimitive(PrimitiveType primType, void *indices, int32 numIndices);
void im3DEnd(void); void im3DEnd(void);
int deviceSystem(DeviceReq req, void*); int deviceSystem(DeviceReq req, void *arg0, int32 n);
extern Device renderdevice; extern Device renderdevice;
} }