The GL texture image functions in teximage.c basically just do error checking and data structure allocation. They in turn call device driver functions which actually copy/convert/store the user's texture image data.
However, most device drivers will be able to use the fallback functions in this file. That is, most drivers will have the following bit of code: ctx->Driver.TexImage1D = _mesa_store_teximage1d; ctx->Driver.TexImage2D = _mesa_store_teximage2d; ctx->Driver.TexImage3D = _mesa_store_teximage3d; etc...
Texture image processing is actually kind of complicated. We have to do: Format/type conversions pixel unpacking pixel transfer (scale, bais, lookup, convolution!, etc)
These functions can handle most everything, including processing full images and sub-images.
- Enumerator:
-
Definition at line 72 of file texstore.c.