2 * Mesa 3-D graphics library
5 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 #ifndef PROG_STATEVARS_H
26 #define PROG_STATEVARS_H
32 * Used for describing GL state referenced from inside ARB vertex and
34 * A string such as "state.light[0].ambient" gets translated into a
35 * sequence of tokens such as [ STATE_LIGHT, 0, STATE_AMBIENT ].
37 typedef enum gl_state_index_
{
38 STATE_MATERIAL
= 100, /* start at 100 so small ints are seen as ints */
41 STATE_LIGHTMODEL_AMBIENT
,
42 STATE_LIGHTMODEL_SCENECOLOR
,
53 STATE_POINT_ATTENUATION
,
62 STATE_MATRIX_TRANSPOSE
,
63 STATE_MATRIX_INVTRANS
,
80 STATE_TEXGEN_OBJECT_S
,
81 STATE_TEXGEN_OBJECT_T
,
82 STATE_TEXGEN_OBJECT_R
,
83 STATE_TEXGEN_OBJECT_Q
,
90 STATE_FRAGMENT_PROGRAM
,
95 STATE_INTERNAL
, /* Mesa additions */
98 STATE_POSITION_NORMALIZED
, /* normalized light position */
99 STATE_INTERNAL_DRIVER
/* first available state index for drivers (must be last) */
105 _mesa_load_state_parameters(GLcontext
*ctx
,
106 struct gl_program_parameter_list
*paramList
);
110 _mesa_program_state_flags(const GLint state
[]);
114 _mesa_program_state_string(const GLint state
[6]);
117 #endif /* PROG_STATEVARS_H */