diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-08-31 18:52:47 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-08-31 18:52:47 +0000 |
commit | 04a81da03bef5020d863e46aa597eddf7aaac016 (patch) | |
tree | 714f54ed6a4a5b74a17194cce98047e6a60dca1a /src/mesa/main/mtypes.h | |
parent | e38a55ecb27562a52d48bf1d673803a10d8a5bce (diff) |
Moved some shared vertex/fragment program code into new program.c file.
Implemented new program_parameter_list type and functions for dealing with
named program parameters, constants and GL state references.
New state_index enum for describing GL state referenced within ARB vertex/
fragment programs. Plus, functions for fetching named GL state.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 5497aac838..47cb19b625 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1445,16 +1445,7 @@ enum register_file struct vp_instruction; struct fp_instruction; - -/** - * Named program parameters - */ -struct program_parameter -{ - const char *Name; - GLfloat Values[4]; - GLboolean Constant; -}; +struct program_parameter_list; /** @@ -1499,8 +1490,7 @@ struct fragment_program GLuint NumAluInstructions; /**< GL_ARB_fragment_program */ GLuint NumTexInstructions; GLuint NumTexIndirections; - struct program_parameter *Parameters; /**< array [NumParameters] */ - GLuint NumParameters; + struct program_parameter_list *Parameters; /**< array [NumParameters] */ }; |