hardcoded gl3 shaders; extended Image; bmp writer

This commit is contained in:
aap
2016-07-19 18:40:10 +02:00
parent 14547ef830
commit 69356264d7
23 changed files with 1132 additions and 187 deletions

View File

@@ -183,13 +183,18 @@ struct Image
void setPixels(uint8 *pixels);
void setPalette(uint8 *palette);
bool32 hasAlpha(void);
void unindex(void);
void removeMask(void);
Image *extractMask(void);
static void setSearchPath(const char*);
static void printSearchPath(void);
static char *getFilename(const char*);
};
Image *readTGA(const char *filename);
void writeTGA(Image *image, const char *filename);
void writeBMP(Image *image, const char *filename);
// used to emulate d3d and xbox textures
struct RasterLevels