fixed bug with texture allocation

This commit is contained in:
aap
2015-09-19 19:28:23 +02:00
parent ee96da332f
commit 3c0df895f1
19 changed files with 380 additions and 273 deletions

View File

@@ -118,6 +118,8 @@ struct Raster : PluginBase<Raster>
uint8 *texels;
uint8 *palette;
static int32 nativeOffsets[NUM_PLATFORMS];
Raster(int32 width, int32 height, int32 depth, int32 format, int32 platform = 0);
~Raster(void);
@@ -146,6 +148,14 @@ struct Raster : PluginBase<Raster>
};
};
struct NativeRaster
{
virtual void create(Raster *raster) { assert (0 && "unimplemented"); };
virtual uint8 *lock(Raster *raster, int32 level) { assert (0 && "unimplemented"); return NULL; };
virtual void unlock(Raster *raster, int32 level) { assert (0 && "unimplemented"); };
virtual int32 getNumLevels(Raster *raster) { assert (0 && "unimplemented"); return 0; };
};
// TODO: link into texdict
struct Texture : PluginBase<Texture>
{