diff options
author | Brian Paul <[email protected]> | 2001-02-06 23:35:49 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-02-06 23:35:49 +0000 |
commit | 78ad878b661d72ce1246b8c66ce97b7f67bed4e7 (patch) | |
tree | c63359b6b529df80b2640d0f27407dfba00ad277 /src/mesa/drivers/glide/fxdrv.h | |
parent | f378ab825c0c74aab263e7dec30194eead22c288 (diff) |
updated texture image handling - STILL UNTESTED
Diffstat (limited to 'src/mesa/drivers/glide/fxdrv.h')
-rw-r--r-- | src/mesa/drivers/glide/fxdrv.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mesa/drivers/glide/fxdrv.h b/src/mesa/drivers/glide/fxdrv.h index c8876f7433d..a5a81dd5972 100644 --- a/src/mesa/drivers/glide/fxdrv.h +++ b/src/mesa/drivers/glide/fxdrv.h @@ -211,10 +211,14 @@ typedef struct MemRange_t { typedef struct { GLsizei width, height; /* image size */ + GLint wScale, hScale; /* image scale factor */ GrTextureFormat_t glideFormat; /* Glide image format */ - unsigned short *data; /* Glide-formated texture image */ } tfxMipMapLevel; +/* + * TDFX-specific texture object data. This hangs off of the + * struct gl_texture_object DriverData pointer. + */ typedef struct tfxTexInfo_t { struct tfxTexInfo *next; struct gl_texture_object *tObj; @@ -223,8 +227,6 @@ typedef struct tfxTexInfo_t { FxU32 whichTMU; GLboolean isInTM; - tfxMipMapLevel mipmapLevel[MAX_TEXTURE_LEVELS]; - MemRange *tm[FX_NUM_TMU]; GLint minLevel, maxLevel; @@ -300,7 +302,12 @@ typedef struct { #define FX_CONTEXT(ctx) ((fxMesaContext)((ctx)->DriverCtx)) -#define FX_TEXTURE_DATA(t) fxTMGetTexInfo((t)->_Current) + +#define FX_TEXTURE_DATA(texUnit) fxTMGetTexInfo((texUnit)->_Current) + +#define fxTMGetTexInfo(o) ((tfxTexInfo*)((o)->DriverData)) + +#define FX_MIPMAP_DATA(img) ((tfxMipMapLevel *) (img)->DriverData) #define BEGIN_BOARD_LOCK() #define END_BOARD_LOCK() @@ -570,7 +577,6 @@ extern void fxDDDepthFunc(GLcontext *, GLenum); extern void fxDDInitExtensions( GLcontext *ctx ); -#define fxTMGetTexInfo(o) ((tfxTexInfo*)((o)->DriverData)) extern void fxTMInit(fxMesaContext ctx); extern void fxTMClose(fxMesaContext ctx); extern void fxTMRestoreTextures_NoLock(fxMesaContext ctx); |