From: Brian P. <br...@va...> - 2001-02-06 21:50:55
|
I've just checked in my first round of texture interface changes. Drivers can now hang their texture image data off of the gl_texture_image struct's Data pointer. The FetchTexel() function pointer in the gl_texture_image struct is now used to fetch texels by the software texturing code. The device driver functions for glTex[Sub]Image() have changed. They no longer return true/false for success/failure. There are fallback functions for these Driver functions in src/texstore.c. I haven't implemented a gl_texture_format structure as Gareth suggested. After Gareth's overhauled the texutil.c code that may be useful, but I'm not sure it'll be necessary. As it is now, the driver's TexImage2D function (for example) simply has to fill in the RedBits, GreenBits, etc and FetchTexel() fields in struct gl_texture_image and core Mesa is happy. Next, I have to update the FX driver for these changes. -Brian |