ps2 raster creation basically done

This commit is contained in:
aap
2017-08-19 23:09:45 +02:00
parent 75435b8934
commit 8e277cbe9c
5 changed files with 261 additions and 86 deletions

View File

@@ -227,10 +227,14 @@ struct Raster
int32 format;
int32 width, height, depth;
int32 stride;
uint8 *texels;
uint8 *pixels;
uint8 *palette;
uint8 *originalPixels;
// TODO: use them (for locking mainly)
int32 originalWidth;
int32 originalHeight;
int32 originalStride;
// TODO:
// original pixels, width, height, stride (used for locking)
// parent raster and offset
static Raster *create(int32 width, int32 height, int32 depth,