summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/attrib.c
Commit message (Collapse)AuthorAgeFilesLines
* Colortable re-org.Brian2007-03-161-9/+10
| | | | | The pixel transfer path has three color table lookups. Use an array [3] to store that info, rather than separate variables.
* Fix glPush/PopClientAttrib() for VBO state (bug 9445).Brian2007-01-051-2/+15
|
* fix glPopAttrib/color material bug #9091Brian Paul2006-11-201-4/+4
|
* Merge texmem-0-3-branch.Keith Whitwell2006-11-011-0/+5
|
* fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BITBrian Paul2006-08-041-0/+2
|
* include arrayobj.hBrian Paul2006-06-121-0/+1
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-13/+39
| | | | | | | and demos are also added. Adding basic support to drivers should be as easy as just enabling the extension, though thorough test would also be required.
* Fix yet another issue with popping GL_DRAW_BUFFER state with respect toBrian Paul2006-04-221-12/+29
| | | | single vs. multiple outputs and what kind of FBO is currently bound.
* When popping GL_DRAW_BUFFER state, need to re-do error checking sinceBrian Paul2006-04-141-4/+15
| | | | | | validity depends on whether a window-system FBO or user-created FBO is currently bound. glPopAttrib() may generate GL_INVALID_OPERATION because of this.
* Use standard ARB names instead of vendor-specific NV names for the ↵Roland Scheidegger2006-03-031-4/+4
| | | | ARB/NV_vertex_program enums in common state handling code, and update comments accordingly. Change some slightly confusing code which gave the impression GL_VERTEX_PROGRAM_ARB and GL_VERTEX_PROGRAM_NV enums were different.
* Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul2005-12-141-3/+0
| | | | done with fragment programs nowadays.
* Added _mesa_light() helper function so we can avoid transforming thenBrian Paul2005-11-121-18/+14
| | | | | un-transforming light positions and spot directions when popping light state off the attribute stack.
* s/MAX_LIGHTS/ctx->Const.MaxLights/ and spruce up some commentsBrian Paul2005-11-101-4/+4
|
* fix popping of GL_SPOT_DIRECTION (bug 5005)Brian Paul2005-11-101-1/+1
|
* fix popping of GL_EYE_PLANE state (bug 4996)Brian Paul2005-11-091-10/+20
|
* Replace ctx->Driver.StencilOp/Func/Mask() functions withBrian Paul2005-09-131-7/+10
| | | | ctx->Driver.Stencil*Separate() functions.
* OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.Brian Paul2005-09-131-14/+19
| | | | | See comment near top of stencil.c for info about OpenGL 2.0 vs. GL_EXT_stencil_two_side.
* remove dead code, update commentsBrian Paul2005-08-311-5/+0
|
* removed GL_HP_occlusion_test extensionBrian Paul2005-08-251-4/+1
|
* Add a set of predicate functions for testing matrices instead of directlyBrian Paul2005-06-301-3/+3
| | | | | | testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
* properly pop the GL_TEXTURE_GEN_ enable stateBrian Paul2005-05-271-0/+8
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-0/+7
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* handle ENABLE_BIT for EXT_stencil_two_sideDaniel Borca2004-11-221-1/+4
|
* use parentheses to avoid warningDaniel Borca2004-11-151-1/+1
|
* pop(stencil) for EXT_stencil_two_sideDaniel Borca2004-11-121-7/+16
|
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-6/+5
|
* Handle GL_MAX_VERTEX_ATTRIBS_ARB in glGet*().Brian Paul2004-09-131-3/+1
| | | | Define 2.0 point-sprite related tokens in glheader.h (temporary).
* changes towards GL_ARB_point_sprite (two-zero)Daniel Borca2004-09-131-0/+4
|
* Implementation of GL_EXT_pixel_buffer_object extension.Brian Paul2004-03-131-0/+19
| | | | | Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
* Do more bookkeeping of vertex buffer object reference counts.Brian Paul2004-02-111-3/+31
| | | | Incr/decr counts when doing glPush/PopClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT).
* Refactor "class" texture environments to be implemented in terms ofIan Romanick2004-02-061-31/+31
| | | | ARB_texture_env_combine state.
* Added support for EXT_blend_equation_separate / ATI_blend_equation_separate.Ian Romanick2004-01-271-1/+10
| | | | | The internal driver interface was also changed to use BlendEquationSeparate instead of BlendEquation.
* Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett2003-10-211-4/+4
| | | | | points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
* Trivial changes to add support for GL_ARB_point_sprite, which is aIan Romanick2003-08-231-2/+3
| | | | subset of GL_NV_point_sprite (which was already supported).
* Store material attributes in an Attrib[] style array. This is aKeith Whitwell2003-08-051-2/+2
| | | | | first step to reviving/rescuing the 'vtx' rework from the old mesa tree.
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-0/+8
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* fix bug in popping texture color table stateBrian Paul2003-02-051-2/+2
|
* Make GL_SGI_texture_color_table work per-texture unit.Brian Paul2003-01-261-11/+6
| | | | Clean-up and optimize _swrast_texture_table_lookup().
* push/pop color table state (Eric Plante)Brian Paul2003-01-221-3/+28
|
* Header file clean-up:Brian Paul2002-10-241-9/+2
| | | | | | | | 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.
* Add casts to quiet compiler warnings.Karl Schultz2002-10-171-3/+3
|
* check EXT_point_parameters before calling PointParameterfvEXT()Brian Paul2002-10-111-7/+11
|
* Changed a number of context fields from GLchan to GLfloat (such as ClearColor).Brian Paul2002-10-041-8/+7
| | | | | | 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.
* GL_EXT_stencil_two_side extension, not 100% complete yet.Brian Paul2002-09-061-6/+9
|
* s/5/NUM_TEXTURE_TARGETS/Brian Paul2002-09-031-2/+2
|
* Port glXCopyContext bug from 4.0 branch.Brian Paul2002-06-171-42/+11
|
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-15/+32
| | | | | | | | | 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.
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-4/+5
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* New _mesa_debug() function to replace fprintf() calls.Brian Paul2002-06-131-6/+5
| | | | | | | | Some source files updated to call _mesa_debug(), but not finished. Added __GLimports as a parameter to _mesa_create/init_context() and updated drivers accordingly. Fleshed-out more of the __GLimports and __GLexports functionality. Removed run-time config file support (config.c)