Brian Paul
0d22b90540
indentation fix
2005-02-08 02:04:49 +00:00
Brian Paul
8c3ddf4270
add a few comments
2005-02-05 18:11:05 +00:00
Daniel Borca
714c36c120
allow more internalFormat/format combinations (i hope i got it right)
2005-01-17 08:04:39 +00:00
Daniel Borca
2982dce27e
really protect against npot compressed textures (logbase2 never returns -1).
2004-12-20 08:03:01 +00:00
Brian Paul
68d293b035
Added driver hooks for GetTexImage() and GetCompressedTexImage().
...
Added fallback _mesa_get_[compressed]_teximage() routines to texstore.c
2004-12-12 19:03:16 +00:00
Daniel Borca
3cc28c96cd
allow GetTexImage with RGBA format and COLOR_INDEX internalformat
2004-12-10 07:36:35 +00:00
Alan Hourihane
22ae633d1e
Fix some warnings
2004-12-02 13:29:40 +00:00
Brian Paul
ebe8d3152d
added GL_RED/GREEN/BLUE to is_color_format()
2004-11-22 19:58:59 +00:00
Brian Paul
60909388ab
GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpacking
...
and ignored for 1D and 2D images.
Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function.
This change gets propogated to some other routines.
Also added new _mesa_image_address[123]d() convenience functions.
2004-11-10 15:46:52 +00:00
Brian Paul
1c86813922
PBO support for glGetCompressedTexImage().
2004-10-31 16:35:06 +00:00
Brian Paul
b46712ca9d
glGetTexImage() now works with PBOs.
2004-10-31 16:24:32 +00:00
Ian Romanick
a2dc424acf
Reject unsupported texture formats passed to glCompressedTexImage?D. This
...
fixes Mesa bug #1028405 .
2004-10-08 01:03:10 +00:00
Brian Paul
529e0a98d4
don't test for NULL pixels pointer here, do that in the 'store' routines after validating PBO address
2004-09-23 17:34:52 +00:00
Brian Paul
a6c423d956
Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch 1015696)
2004-08-25 15:59:48 +00:00
Brian Paul
2371033bba
document some assumptions made about compressed texture tile size
2004-07-02 16:39:59 +00:00
Brian Paul
f252f64430
Big-endian texture fixes from Michel Dänzer.
2004-06-19 17:44:23 +00:00
Roland Scheidegger
997e81fe75
added more compressed formats to is_color_format()
2004-06-15 14:11:09 +00:00
Brian Paul
3405708e21
added compressed formats to is_color_format() and updated some comments
2004-06-14 21:01:08 +00:00
Brian Paul
beef59e73a
added GL_BGR and GL_BGRA to is_color_format() (Ronny Vindenes
2004-06-11 19:08:55 +00:00
Brian Paul
601df9c742
Additional error checking for glTexImageXD.
...
Only allow 1D and 2D GL_DEPTH_COMPONENT textures.
Make sure internal format and user format are in same catagory.
2004-06-10 20:46:23 +00:00
Brian Paul
a156b49800
Added big-endian texture formats.
...
Moved CI->RGBA palette lookup into texel fetch function.
2004-05-12 01:50:30 +00:00
Brian Paul
8f04c12e0a
Removed the old teximage code.
...
Moved all code related to specific texture compression modes into
new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
2004-04-27 13:39:20 +00:00
Brian Paul
5b45c11486
use FetchTexelf() in GetTexImage() to return float textures correctly
2004-04-22 01:08:36 +00:00
Brian Paul
f959f6e1dc
New glTexImage code.
...
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.
2004-04-22 00:27:31 +00:00
Brian Paul
8cfd08b613
rename some span pack/unpack functions for better uniformity
2004-02-28 20:35:57 +00:00
Keith Whitwell
18fa367ac6
Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a single
...
array, texObj->Image[face][level].
2004-01-27 16:34:45 +00:00
Brian Paul
1749a25ca8
New error checking in _mesa_GetTexImage().
...
Updated comments and some better function parameter names.
2004-01-24 17:17:25 +00:00
Brian Paul
4f295cee73
Initial support for floating point and signed texture formats.
...
New "FetchTexelFuncF()" function returns texels in floating point format.
Only used for depth component images at this time.
Changed original FetchTexelFunc to return GLchan instead of GLvoid, removing
need for a bunch of ugly casts.
2004-01-23 01:59:54 +00:00
Brian Paul
add9f2168a
add GL_TEXTURE_CUBE_MAP_ARB to _mesa_max_texture_levels(), reordered some comments
2004-01-11 16:21:13 +00:00
Brian Paul
b305028464
Port over changes from XFree86/Mesa 5.0.2, mostly to silence compiler warnings.
2003-12-04 03:19:46 +00:00
Daniel Borca
663a9e1b7e
more texture compression
2003-11-21 09:56:50 +00:00
Daniel Borca
40bd9d0b19
texture compression
2003-10-29 14:35:31 +00:00
Kendall Bennett
c40d1dd62d
Added GLAPIENTRY decorations for all first level OpenGL API function entry
...
points so that the calling conventions will work correctly with the assembler
stubs with the Open Watcom compiler.
2003-10-21 22:22:17 +00:00
Brian Paul
973da83f62
Allow glTexImage1/2/3D to specify width/height/depth = 0.
...
This allows texture state to be resettable to default state.
Not allowed according to the spec, but allowed by all other OpenGL libs.
2003-09-12 15:03:12 +00:00
Keith Whitwell
6dc8557500
Merge Jose's documentation and core Mesa changes from embedded branch
2003-07-17 13:43:59 +00:00
Brian Paul
f6e76fe9b5
fix conformance glitch introduced with NPOT extension
2003-07-07 17:01:18 +00:00
Brian Paul
887e2cf01a
Implemented GL_ARB_texture_non_power_of_two (except for auto mipmap generation).
2003-07-03 03:05:48 +00:00
Brian Paul
738318bb75
Rework gl[Copy]Tex[Sub]Image() error checking so that all level, width, height
...
and depth checks are done via ctx->Driver.TestProxyTexImage(). This allows
more flexiblity, like supporting larger, non-cubic 3D textures.
2003-04-04 17:17:50 +00:00
Brian Paul
27f4484fb7
added GL_PROXY_TEXTURE_RECTANGLE_NV to is_proxy_target()
2003-04-01 22:23:11 +00:00
Brian Paul
a3f137094c
New device driver hooks for texture object and texture image creation to
...
allow drivers to implement C++-like inheritance via containment.
Lots of assorted clean-ups related to texture objects.
2003-04-01 16:41:50 +00:00
Brian Paul
27558a160a
Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]
...
Moved type conversion and interpolation macros into macros.h
Updated all the files that used to include mmath.h
2003-03-01 01:50:20 +00:00
Brian Paul
fa268adc9d
fix glCopyTexSubImage2D error checking (bug 661907)
2003-01-08 16:24:05 +00:00
Brian Paul
36b518a7ca
s/sprintf/_mesa_sprintf/
2002-10-30 19:58:58 +00:00
Brian Paul
3c63452e64
Header file clean-up:
...
1. Remove all.h and PC_HEADER junk.
2. Rolled mem.c and mem.h into imports.c and imports.h
3. Include imports.h instead of mem.h
Restore _mesa_create/initialize_context() to be like they were in 4.0.4
New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
2002-10-24 23:57:19 +00:00
Brian Paul
ef31f60b12
new _mesa_max_texture_levels() helper function - not used everywhere yet
2002-10-18 18:03:04 +00:00
Brian Paul
e716549618
only allow intformat==GL_COLOR_INDEX if EXT_paletted_texture is supported
2002-10-18 13:24:08 +00:00
Karl Schultz
798d83cf67
Add casts to quiet compiler warnings.
2002-10-17 22:26:06 +00:00
Brian Paul
23cdcede5d
check texImage->IsClientData before freeing memory
2002-10-10 14:12:09 +00:00
Brian Paul
d8419c730e
better error checking related to YCbCr images
2002-10-02 17:25:05 +00:00
Brian Paul
89fb06fcc1
new texture compression infrastructure
2002-09-27 02:45:37 +00:00