26 lines
556 B
C
26 lines
556 B
C
|
namespace rw {
|
||
|
|
||
|
struct Engine
|
||
|
{
|
||
|
ObjPipeline *defaultPipeline;
|
||
|
int32 rasterNativeOffset;
|
||
|
|
||
|
void (*rasterCreate)(Raster*);
|
||
|
uint8 *(*rasterLock)(Raster*, int32 level);
|
||
|
void (*rasterUnlock)(Raster*, int32 level);
|
||
|
int32 (*rasterNumLevels)(Raster*);
|
||
|
void (*rasterFromImage)(Raster*, Image*);
|
||
|
};
|
||
|
|
||
|
extern Engine engine[NUM_PLATFORMS];
|
||
|
|
||
|
namespace null {
|
||
|
void rasterCreate(Raster*);
|
||
|
uint8 *rasterLock(Raster*, int32 level);
|
||
|
void rasterUnlock(Raster*, int32 level);
|
||
|
int32 rasterNumLevels(Raster*);
|
||
|
void rasterFromImage(Raster*, Image*);
|
||
|
}
|
||
|
|
||
|
}
|