aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.h
Commit message (Collapse)AuthorAgeFilesLines
* changed _mesa_rescale_teximage2d to allow rescaling of padded imagesDaniel Borca2004-10-181-4/+6
|
* Another pass at implementing byte-swapped texture formats.Brian Paul2004-05-131-6/+4
| | | | | More code re-use this time. Most formats now tested/debugged with new packedpixels.c test.
* remove last remnants of NEWTEXSTORE stuffBrian Paul2004-05-121-19/+0
|
* yank bgr233 texformat. minor comment updates.Brian Paul2004-05-121-1/+0
|
* Added big-endian texture formats.Brian Paul2004-05-121-1/+9
| | | | Moved CI->RGBA palette lookup into texel fetch function.
* texture compression: getting warmerDaniel Borca2004-05-041-0/+6
|
* restored _mesa_rescale_teximage2d()Brian Paul2004-05-021-0/+7
|
* Removed the old teximage code.Brian Paul2004-04-271-0/+17
| | | | | Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
* New glTexImage code.Brian Paul2004-04-221-9/+47
| | | | | | | | The gl_texture_format struct now has a StoreTexImageFunc that's called by glTex[Sub]Image[123]D to convert the user's texture data into the specific texture format layout. Now it's much easier to add new texture formats (like the 16/32-bit floating point formats). The texutil.[ch] and texutil_tmp.h files are obsolete.
* Updates required for building the SciTech SNAP version of Mesa. This includes:Kendall Bennett2003-09-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | 1. Changes to the main header files to exclude some stuff is __SCITECH_SNAP__ is defined. The main GL/gl.h header file in SciTech SNAP is actually a wrapper that defines a bunch of necessary stuff and then included GL/gl_mesa.h which is the normal Mesa GL/gl.h header file renamed. 2. Changed APIENTRY * to APIENTRYP macros in the GL/gl.h and GL/glext.h header files. This will better support other compilers like IBM VisualAge C++. I added a basic macro for APIENTRYP to GL/gl.h (inside the !SNAP block), so existing code will compile the same, but when the SNAP version is being built we will use the correc definitions for the target compiler. 3. Changed a few more void * declarations to GLvoid *'s to avoid Open Watcom compiler complaints. 4. Updates the OPENGL_VERSION macro to include a patch number (set to 0 for now). Probably not necessary, but the original macro was wrong and we use that macro in our code. 5. Changed _tnl_end() to _tnl_end_ctx() to avoid conflicts with _tnl_End when using a compiler that has a case insensitive link.
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-5/+7
|
* Rework gl[Copy]Tex[Sub]Image() error checking so that all level, width, heightBrian Paul2003-04-041-10/+2
| | | | | and depth checks are done via ctx->Driver.TestProxyTexImage(). This allows more flexiblity, like supporting larger, non-cubic 3D textures.
* new texture compression infrastructureBrian Paul2002-09-271-5/+28
|
* fixed _mesa_generate_mipmaps() target problemBrian Paul2002-09-161-4/+4
|
* Enable GL_ARB_texture_compression for XMesa/GLX driver. TextureBrian Paul2001-06-151-1/+8
| | | | | compression isn't really implmented. Just updated glTexImageXD() to accept compressed internal format tokens.
* initial support for GL_SGIS_generate_mipmap extensionBrian Paul2001-05-211-1/+6
|
* Fixed a texture conversion problem: sometimes need to produce an intermediateBrian Paul2001-04-201-1/+2
| | | | | texture image in the base internal format between user->Mesa format conversion. See comments in texstore.c
* More texture image changes.Brian Paul2001-04-041-2/+3
| | | | | | | | | | | | 1. Added ctx->Driver.ChooseTextureFormat() function. Examines user's internalFormat, format, type params and returns a gl_texture_format. 2. _mesa_store_teximage[123]d() calls ctx->Driver.ChooseTextureFormat(), allocates storage and transfers the image into the desired format. 3. _mesa_transfer_teximage() now takes a gl_texture_format to describe the destination format. Any combination of input format/type and output gl_texture_format is accepted. Uses optimized _mesa_convert_- texsubimage[123]d() functions when possible. 3. DRI driver's TexImage[123]D functions should be a lot simpler now.
* renamed some vars, added a bunch of commentsBrian Paul2001-03-211-2/+2
|
* depth images were broken by latest teximage changes, this fixes the problemBrian Paul2001-03-211-2/+2
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-31/+1
|
* Updated Driver.CopyTexImage[12]D and Driver.CopyTexSubImage[123]D functionsBrian Paul2001-02-191-1/+30
| | | | | so they work like the other teximage functions. Added fallback routines to texstore.c for drivers to use.
* Overhaul of texture image handling.Brian Paul2001-02-061-0/+143
1. gl_texture_image struct's Data pointer points to images in driver's format. 2. Added FetchTexel() function pointer to struct gl_texture_image. 3. Changed Driver Tex[Sub]Image functions, return void now. 4. Texture storage/fetch code in new texstore.c file. 5. Removed texture.[ch] - functions moved to state.c Note: FX driver updates not finished yet.