Brian Paul
7e86eb991b
minor error string improvement
2003-11-24 15:40:52 +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
Brian Paul
781fb93877
Added OpenGL 1.4's per-texture LOD bias.
2003-08-28 03:04:41 +00:00
Brian Paul
8a033fa135
minor code improvement in glGenTextures
2003-08-18 19:45:42 +00:00
Brian Paul
05944c031c
Restore more code lost during last big merge.
...
Rename colortable-related functions.
2003-07-22 03:51:46 +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
887e2cf01a
Implemented GL_ARB_texture_non_power_of_two (except for auto mipmap generation).
2003-07-03 03:05:48 +00:00
Ian Romanick
9ac51f57ef
Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.
2003-06-05 00:50:18 +00:00
Brian Paul
f0805670a1
fix default compare mode
2003-04-01 18:10:10 +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
24e81fda4d
fix/improve glAreTextures/ProgramsResident (Jose Fonseca)
2003-03-10 00:26:24 +00:00
Brian Paul
610d59981a
First batch of code for GL_NV_fragment_program.
...
Re-org of some GL_NV_vertex_program code.
Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
2003-01-14 04:55:45 +00:00
Brian Paul
ff9ef3baed
move t->Image[i]->Format test (bug 659012)
2003-01-08 16:48:04 +00:00
Keith Whitwell
e15fd85727
Add mechanism to destroy mutexes. Important on OS's where mutex initialization
...
allocates memory (like FreeBSD).
2002-12-12 13:03:15 +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
e9283774dc
remove debug printfs
2002-10-22 15:15:41 +00:00
Brian Paul
cf46208624
fix refcount error in _mesa_DeleteTextures (Randy Fayan)
2002-10-22 15:14:49 +00:00
Brian Paul
e6962b183d
add missing texture rectangle code in _mesa_DeleteTextures()
2002-10-22 15:08:59 +00:00
Brian Paul
fc80ad6e62
Changed a number of context fields from GLchan to GLfloat (such as ClearColor).
...
Also changed parameter types for some driver functions (like ctx->Driver.Clear-
Color). Updated all the device drivers.
Someday, we want to support 8, 16 and 32-bit channels dynamically at runtime.
2002-10-04 19:10:06 +00:00
Brian Paul
4e9676fb13
Applied Matt Sealey's patch to remove/isolate all stdio.h function calls.
...
Instead of mstdio.[ch], use imports.[ch] to isolate these functions.
2002-06-29 19:48:15 +00:00
Brian Paul
85d816028a
Port glXCopyContext bug from 4.0 branch.
2002-06-17 23:36:31 +00:00
Brian Paul
8afe7de8de
Implemented GL_NV_texture_rectangle extension.
...
Replace struct gl_texure_object's Dimension w/ Target field.
Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled
field is obsolete, but still present for now. This effectively
removes the 8-texture units limit, 32 units now possible, but unlikely!
New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field.
Updated device drivers to use ctx->Texture._EnabledUnits.
2002-06-15 03:03:06 +00:00
Brian Paul
4753d60dd0
Added ctx parameter to _mesa_debug()
...
Added _mesa_printf()
Updated SetDrawBuffer() function in all drivers (ala 4.0.3)
Import 4.0.3/DRI changes.
2002-06-15 02:38:15 +00:00
Brian Paul
d09a1d8b29
more removal of fprintf() calls
2002-06-13 04:49:17 +00:00
Brian Paul
4182cf60d9
Finished up GL_ARB_depth_texture and GL_ARB_shadow.
2002-02-15 16:32:06 +00:00
Brian Paul
014ec1ac5e
prototype implementation of GL_ARB_depth_texture, GL_ARB_shadow, GL_ARB_shadow_ambient
2001-12-04 23:44:55 +00:00
Brian Paul
dae1774e20
check if deleting _Current texobj in _mesa_DeleteTextures (Bart Barenbrug)
2001-07-27 14:30:50 +00:00
Brian Paul
cd1cefae91
Allow different max texture sizes for 1/2D, 3D and cube maps.
2001-06-13 14:56:14 +00:00
Brian Paul
5a2f32b102
fixed a potential tex obj reference count problem involving multi-texture
2001-04-25 18:21:05 +00:00
Brian Paul
0a31a67269
improved a glBindTexture error message
2001-04-20 17:16:52 +00:00
Brian Paul
5bfaa2f12e
use Image[i]->TexFormat to check for mipmap consistency
2001-03-28 21:31:54 +00:00
Gareth Hughes
2c3d34c905
- Port 3.4 texture utils, texture format work to 3.5 (including new
...
FetchTexel routines).
- Initial hooks for GL_EXT_texture_filter_anisotropic.
2001-03-18 08:53:49 +00:00
Gareth Hughes
22144ab755
Consistent copyright info (version number, date) across all files.
2001-03-12 00:48:37 +00:00
Brian Paul
01915e90e6
More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.
2001-03-08 15:23:46 +00:00
Brian Paul
0883634178
lots of gl_*() to _mesa_*() namespace clean-up
2001-03-03 20:33:27 +00:00
Brian Paul
eb198d2702
tiny change to a gl_problem() call
2001-02-26 18:25:25 +00:00
Brian Paul
c499ce31ba
Implemented GL_SGIX_shadow and GL_SGIX_shadow_texture.
...
Added some const keywords in the s/w texturing code.
2001-02-20 16:42:25 +00:00
Brian Paul
e75d2424e5
Changed FetchTexel() function pointer arguments.
...
Implemented glGetTexImage(format=GL_COLOR_INDEX).
Changed _mesa_unpack_depth_span() args.
Minor changes/clean-ups in mtypes.h.
Histogram counter component sizes were wrong.
2001-02-17 18:41:01 +00:00
Keith Whitwell
5c1e7fa6ee
Removed knowledge of swrast Clear/Bitmap/Accum/Draw/Read/CopyPixels
...
functions from core mesa -- if drivers need these fallbacks they
must now call them themselves.
Introduced hooks for clip-vertex-interpolation and the rendering
of clipped lines and polygons. Allows drivers to interpolate
their hardware-format vertices directly. Used in dri drivers to
replace fastpath code.
Slight optimizations to pipeline build/run routines.
2001-01-29 20:47:39 +00:00
Keith Whitwell
cab974cf6c
Major rework of tnl module
...
New array_cache module
Support 8 texture units in core mesa (now support 8 everywhere)
Rework core mesa statechange operations to avoid flushing on many
noop statechanges.
2000-12-26 05:09:27 +00:00
Brian Paul
083e466f88
Renamed texture object _P to _MaxLevel and _M to _MaxLambda.
...
Now add BaseLevel in _MaxLevel computation.
2000-12-14 20:25:56 +00:00
Jouk Jansen
5e3bc0c2a2
Committing in .
...
Modified Files:
Mesa/macos/gli_api/gliapi1.h Mesa/macos/gli_api/gliapi2.h
Mesa/macos/gli_api/gliapiext.h Mesa/macos/src-gli/fxgli.c
Mesa/macos/src-gli/fxgli.h Mesa/macos/src-gli/fxgli2.c
Mesa/macos/src-gli/fxgli_tridebug.c Mesa/src/accum.c
Mesa/src/accum.h Mesa/src/all.h Mesa/src/alpha.c
Mesa/src/alpha.h Mesa/src/attrib.c Mesa/src/attrib.h
Mesa/src/bitmap.c Mesa/src/bitmap.h Mesa/src/blend.c
Mesa/src/blend.h Mesa/src/buffers.c Mesa/src/buffers.h
Mesa/src/clip.c Mesa/src/clip.h Mesa/src/colortab.h
Mesa/src/config.c Mesa/src/context.c Mesa/src/context.h
Mesa/src/convolve.c Mesa/src/convolve.h Mesa/src/copypix.c
Mesa/src/copypix.h Mesa/src/debug.c Mesa/src/depth.c
Mesa/src/depth.h Mesa/src/dlist.c Mesa/src/dlist.h
Mesa/src/drawpix.c Mesa/src/drawpix.h Mesa/src/enable.c
Mesa/src/enable.h Mesa/src/eval.c Mesa/src/eval.h
Mesa/src/extensions.c Mesa/src/extensions.h
Mesa/src/feedback.c Mesa/src/feedback.h Mesa/src/fog.c
Mesa/src/fog.h Mesa/src/get.c Mesa/src/get.h Mesa/src/glapi.c
Mesa/src/glthread.h Mesa/src/highpc.c Mesa/src/hint.h
Mesa/src/histogram.h Mesa/src/image.c Mesa/src/image.h
Mesa/src/imports.c Mesa/src/light.c Mesa/src/light.h
Mesa/src/lines.c Mesa/src/lines.h Mesa/src/logic.c
Mesa/src/logic.h Mesa/src/masking.c Mesa/src/masking.h
Mesa/src/matrix.c Mesa/src/matrix.h Mesa/src/pixel.c
Mesa/src/pixel.h Mesa/src/points.c Mesa/src/points.h
Mesa/src/polygon.c Mesa/src/polygon.h Mesa/src/rastpos.c
Mesa/src/readpix.c Mesa/src/scissor.c Mesa/src/scissor.h
Mesa/src/state.c Mesa/src/state.h Mesa/src/stencil.c
Mesa/src/stencil.h Mesa/src/teximage.c Mesa/src/teximage.h
Mesa/src/texobj.c Mesa/src/texobj.h Mesa/src/texstate.c
Mesa/src/texstate.h Mesa/src/texture.c Mesa/src/texture.h
Mesa/src/texutil.c Mesa/src/texutil.h Mesa/src/varray.c
Mesa/src/varray.h Mesa/src/X/fakeglx.c Mesa/src/X/xm_api.c
Mesa/src/X/xm_dd.c Mesa/src/X/xm_line.c Mesa/src/X/xm_span.c
Mesa/src/X/xm_tri.c Mesa/src/swrast/s_aaline.c
Mesa/src/swrast/s_aaline.h Mesa/src/swrast/s_aatriangle.h
Mesa/src/swrast/s_accum.h Mesa/src/swrast/s_alpha.h
Mesa/src/swrast/s_alphabuf.h Mesa/src/swrast/s_blend.h
Mesa/src/swrast/s_context.c Mesa/src/swrast/s_context.h
Mesa/src/swrast/s_depth.h Mesa/src/swrast/s_drawpix.h
Mesa/src/swrast/s_feedback.h Mesa/src/swrast/s_fog.h
Mesa/src/swrast/s_histogram.h Mesa/src/swrast/s_lines.h
Mesa/src/swrast/s_logic.h Mesa/src/swrast/s_masking.h
Mesa/src/swrast/s_pb.h Mesa/src/swrast/s_pixeltex.h
Mesa/src/swrast/s_points.h Mesa/src/swrast/s_quads.c
Mesa/src/swrast/s_quads.h Mesa/src/swrast/s_scissor.h
Mesa/src/swrast/s_span.h Mesa/src/swrast/s_stencil.h
Mesa/src/swrast/s_texture.h Mesa/src/swrast/s_triangle.h
Mesa/src/swrast/s_zoom.h Mesa/src/swrast/swrast.h
Mesa/src/swrast_setup/ss_context.h
Mesa/src/swrast_setup/ss_triangle.c
Mesa/src/swrast_setup/ss_triangle.h
Mesa/src/swrast_setup/ss_vb.h Mesa/src/tnl/t_clip.c
Mesa/src/tnl/t_clip.h Mesa/src/tnl/t_context.c
Mesa/src/tnl/t_context.h Mesa/src/tnl/t_cva.c
Mesa/src/tnl/t_cva.h Mesa/src/tnl/t_debug.c
Mesa/src/tnl/t_debug.h Mesa/src/tnl/t_dlist.h
Mesa/src/tnl/t_eval.c Mesa/src/tnl/t_eval.h
Mesa/src/tnl/t_fog.c Mesa/src/tnl/t_fog.h
Mesa/src/tnl/t_light.c Mesa/src/tnl/t_light.h
Mesa/src/tnl/t_pipeline.c Mesa/src/tnl/t_pipeline.h
Mesa/src/tnl/t_shade.c Mesa/src/tnl/t_shade.h
Mesa/src/tnl/t_stages.c Mesa/src/tnl/t_stages.h
Mesa/src/tnl/t_texture.c Mesa/src/tnl/t_texture.h
Mesa/src/tnl/t_trans_elt.c Mesa/src/tnl/t_trans_elt.h
Mesa/src/tnl/t_varray.c Mesa/src/tnl/t_varray.h
Mesa/src/tnl/t_vb.c Mesa/src/tnl/t_vb.h
Mesa/src/tnl/t_vbcull.c Mesa/src/tnl/t_vbcull.h
Mesa/src/tnl/t_vbfill.c Mesa/src/tnl/t_vbfill.h
Mesa/src/tnl/t_vbindirect.c Mesa/src/tnl/t_vbindirect.h
Mesa/src/tnl/t_vbrender.c Mesa/src/tnl/t_vbrender.h
Mesa/src/tnl/t_vbxform.c Mesa/src/tnl/t_vbxform.h
Mesa/src/tnl/tnl.h
Added Files:
Mesa/src/mtypes.h
Removed Files:
Mesa/src/types.h
Changed Mesa/src/types to Mesa/src/mtypes.h to avoid conflicts while
compiling on a VMS system.
----------------------------------------------------------------------
2000-11-22 07:32:16 +00:00
Brian Paul
a852378a62
Replaced Texture.CurrentD[] with separate Texture.Current1/2/3D vars.
...
Completely removed the dirty texture object list. Set texObj->Complete
to GL_FALSE to indicate dirty.
Made point/line/triangle/quad SWvertex parameters const.
Minor code clean-ups.
2000-11-19 23:10:25 +00:00
Brian Paul
7351049dba
init WrapR to GL_REPEAT mode
2000-11-11 20:23:47 +00:00
Keith Whitwell
14940c4ffe
- Changes for new software rasterizer modules
...
- Remove support for choosing software fallbacks from core code
- Remove partial fallback code from vbrender.c -- drivers are now
expected to be able to find a triangle/quad function for every state,
even if they have to use _swsetup_Triangle or _swsetup_Quad.
- Marked derived variables in the GLcontext struct with a leading
underscore '_'.
2000-11-05 18:40:57 +00:00
Keith Whitwell
a96308c37d
Replace the flags Mesa was using for ctx->NewState with a new set
...
based on the GL attribute groups.
Introduced constants describing the circumstances under which some
key derived values can change:
_SWRAST_NEW_RASTERMASK -- ctx->RasterMask
_SWRAST_NEW_TRIANGLE -- The software rasterizer's triangle
function
_DD_NEW_FEEDBACK -- the 'DD_FEEDBACK' bit in ctx->TriangleCaps
These are helpful in deciding whether you need to recalculate state if your
recalculation involves reference to a derived value.
2000-10-30 13:31:59 +00:00
Brian Paul
ebb248aa5c
more minor header file re-org (moved CONST, ASSERT, INLINE to config.h)
2000-10-29 18:23:16 +00:00
Brian Paul
21d073d55a
added incomplete() debug function/macro
2000-10-24 02:53:18 +00:00
Brian Paul
9a4a958a5c
signal NEW_TEXTURING if there's a Driver.BindTexture() function
2000-10-24 01:13:58 +00:00