2016-06-27 21:59:35 +02:00
|
|
|
namespace rw {
|
|
|
|
namespace gl3 {
|
|
|
|
|
2016-06-29 12:53:02 +02:00
|
|
|
#ifdef RW_OPENGL
|
|
|
|
|
2016-08-21 18:20:27 +02:00
|
|
|
extern uint32 im2DVbo, im2DIbo;
|
2017-08-27 17:13:10 +02:00
|
|
|
void openIm2D(void);
|
2017-08-29 10:12:56 +02:00
|
|
|
void closeIm2D(void);
|
2018-12-17 21:23:41 +01:00
|
|
|
void im2DRenderLine(void *vertices, int32 numVertices,
|
|
|
|
int32 vert1, int32 vert2);
|
|
|
|
void im2DRenderTriangle(void *vertices, int32 numVertices,
|
|
|
|
int32 vert1, int32 vert2, int32 vert3);
|
|
|
|
void im2DRenderPrimitive(PrimitiveType primType,
|
|
|
|
void *vertices, int32 numVertices);
|
2016-08-21 18:20:27 +02:00
|
|
|
void im2DRenderIndexedPrimitive(PrimitiveType primType,
|
|
|
|
void *vertices, int32 numVertices, void *indices, int32 numIndices);
|
2016-06-29 12:53:02 +02:00
|
|
|
|
2017-08-29 10:12:56 +02:00
|
|
|
void openIm3D(void);
|
|
|
|
void closeIm3D(void);
|
|
|
|
void im3DTransform(void *vertices, int32 numVertices, Matrix *world);
|
|
|
|
void im3DRenderIndexed(PrimitiveType primType, void *indices, int32 numIndices);
|
|
|
|
void im3DEnd(void);
|
2016-06-29 12:53:02 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-27 21:59:35 +02:00
|
|
|
void rasterCreate(Raster *raster);
|
2019-08-07 22:37:43 +02:00
|
|
|
uint8 *rasterLock(Raster*, int32 level, int32 lockMode);
|
2016-06-27 21:59:35 +02:00
|
|
|
void rasterUnlock(Raster*, int32);
|
|
|
|
int32 rasterNumLevels(Raster*);
|
|
|
|
void rasterFromImage(Raster *raster, Image *image);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|