summaryrefslogtreecommitdiff
path: root/src/mesa/main/mtypes.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-04-11 01:20:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-04-11 01:20:06 +0000
commitd0492cf1377897c8113a109aa936ee7a7084b9c8 (patch)
tree93fbb24cd921ec0e04365190d44d3d079e02aef3 /src/mesa/main/mtypes.h
parent6cfaff16334981a247694b2ca30fffc398a330d0 (diff)
Some groundwork for GL_ARB_vertex/fragment_program.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r--src/mesa/main/mtypes.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index bd12e772a6..e2569f05e2 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1236,8 +1236,15 @@ struct program
GLuint Id;
GLubyte *String; /* Null-terminated program text */
GLenum Target;
+ GLenum Format; /* String encoding format */
GLint RefCount;
GLboolean Resident;
+ GLfloat LocalParams[MAX_NV_FRAGMENT_PROGRAM_PARAMS][4];
+ GLuint NumInstructions; /* GL_ARB_vertex/fragment_program */
+ GLuint NumTemporaries;
+ GLuint NumParameters;
+ GLuint NumAttributes;
+ GLuint NumAddressRegs;
};
@@ -1260,7 +1267,6 @@ struct fragment_program
GLuint InputsRead; /* Bitmask of which input regs are read */
GLuint OutputsWritten; /* Bitmask of which output regs are written to */
GLuint TexturesUsed[MAX_TEXTURE_IMAGE_UNITS]; /* TEXTURE_x_INDEX bitmask */
- GLfloat LocalParams[MAX_NV_FRAGMENT_PROGRAM_PARAMS][4];
GLuint NumParameters;
struct program_parameter *Parameters; /* array [NumParameters] */
};
@@ -1391,6 +1397,12 @@ struct gl_constants {
GLuint MaxConvolutionHeight;
GLuint MaxClipPlanes;
GLuint MaxLights;
+ /* GL_ARB_vertex_program */
+ GLuint MaxVertexProgramParams;
+ GLuint MaxVertexProgramInstructions;
+ /* GL_ARB_fragment_program */
+ GLuint MaxFragmentProgramParams;
+ GLuint MaxFragmentProgramInstructions;
};
@@ -1405,6 +1417,7 @@ struct gl_extensions {
* Not every extension needs to have such a flag, but it's encouraged.
*/
GLboolean ARB_depth_texture;
+ GLboolean ARB_fragment_program;
GLboolean ARB_imaging;
GLboolean ARB_multisample;
GLboolean ARB_multitexture;
@@ -1417,6 +1430,7 @@ struct gl_extensions {
GLboolean ARB_texture_env_dot3;
GLboolean ARB_texture_mirrored_repeat;
GLboolean ARB_vertex_buffer_object;
+ GLboolean ARB_vertex_program;
GLboolean ARB_window_pos;
GLboolean ATI_texture_mirror_once;
GLboolean ATI_texture_env_combine3;