core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

gl_program_parameter Struct Reference

#include <prog_parameter.h>


Detailed Description

Program parameter.

Used by shaders/programs for uniforms, constants, varying vars, etc.

Data Fields

const char * Name
 Null-terminated string.
gl_register_file Type
 PROGRAM_NAMED_PARAM, CONSTANT or STATE_VAR.
GLenum DataType
 GL_FLOAT, GL_FLOAT_VEC2, etc.
GLuint Size
 Number of components (1.
GLboolean Used
 Helper flag for GLSL uniform tracking.
GLboolean Initialized
 Has the ParameterValue[] been set?
GLbitfield Flags
 Bitmask of PROG_PARAM_*_BIT.
gl_state_index StateIndexes [STATE_LENGTH]
 A sequence of STATE_* tokens and integers to identify GL state.


Field Documentation

const char* gl_program_parameter::Name

Null-terminated string.

gl_register_file gl_program_parameter::Type

PROGRAM_NAMED_PARAM, CONSTANT or STATE_VAR.

GLenum gl_program_parameter::DataType

GL_FLOAT, GL_FLOAT_VEC2, etc.

GLuint gl_program_parameter::Size

Number of components (1.

.4)

GLboolean gl_program_parameter::Used

Helper flag for GLSL uniform tracking.

GLboolean gl_program_parameter::Initialized

Has the ParameterValue[] been set?

GLbitfield gl_program_parameter::Flags

Bitmask of PROG_PARAM_*_BIT.

gl_state_index gl_program_parameter::StateIndexes[STATE_LENGTH]

A sequence of STATE_* tokens and integers to identify GL state.


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4