mirror of
https://github.com/aap/librw.git
synced 2026-04-19 13:03:09 +01:00
lots of changes to rasters; mostly mipmap support and DXT conversion
This commit is contained in:
@@ -268,6 +268,7 @@ struct Raster
|
||||
static Raster *getCurrentContext(void);
|
||||
bool32 renderFast(int32 x, int32 y);
|
||||
|
||||
static Raster *convertTexToCurrentPlatform(Raster *ras);
|
||||
#ifndef RWPUBLIC
|
||||
static void registerModule(void);
|
||||
#endif
|
||||
@@ -337,9 +338,6 @@ void expandPal4_BE(uint8 *dst, uint32 dststride, uint8 *src, uint32 srcstride, i
|
||||
void compressPal4_BE(uint8 *dst, uint32 dststride, uint8 *src, uint32 srcstride, int32 w, int32 h);
|
||||
void copyPal8(uint8 *dst, uint32 dststride, uint8 *src, uint32 srcstride, int32 w, int32 h);
|
||||
|
||||
void flipDXT1(uint8 *dst, uint8 *src, uint32 width, uint32 height);
|
||||
void flipDXT3(uint8 *dst, uint8 *src, uint32 width, uint32 height);
|
||||
void flipDXT5(uint8 *dst, uint8 *src, uint32 width, uint32 height);
|
||||
void flipDXT(int32 type, uint8 *dst, uint8 *src, uint32 width, uint32 height);
|
||||
|
||||
|
||||
@@ -352,9 +350,9 @@ struct Texture
|
||||
enum FilterMode {
|
||||
NEAREST = 1,
|
||||
LINEAR,
|
||||
MIPNEAREST,
|
||||
MIPNEAREST, // one mipmap
|
||||
MIPLINEAR,
|
||||
LINEARMIPNEAREST,
|
||||
LINEARMIPNEAREST, // mipmap interpolated
|
||||
LINEARMIPLINEAR
|
||||
};
|
||||
enum Addressing {
|
||||
|
||||
Reference in New Issue
Block a user