diff options
author | Brian Paul <[email protected]> | 2009-05-21 09:50:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-21 16:10:45 -0600 |
commit | a1f6f82e829d14a9b730f1761ebfc11b4409cb51 (patch) | |
tree | 85150b600cf18a24060c82675d77bf89ea111de8 /src/mesa/vbo/vbo_exec.h | |
parent | bd0861e2742c22e4bce83bce40dfdbfd713835df (diff) |
vbo: move vp_mode enum to vbo_exec.h, use enum instead of GLuint
Diffstat (limited to 'src/mesa/vbo/vbo_exec.h')
-rw-r--r-- | src/mesa/vbo/vbo_exec.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h index 100bb8a5dec..e0f44892cff 100644 --- a/src/mesa/vbo/vbo_exec.h +++ b/src/mesa/vbo/vbo_exec.h @@ -48,6 +48,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #define ERROR_ATTRIB 16 +/** Current vertex program mode */ +enum vp_mode { + VP_NONE, /**< fixed function */ + VP_NV, /**< NV vertex program */ + VP_ARB /**< ARB vertex program or GLSL vertex shader */ +}; struct vbo_exec_eval1_map { @@ -103,7 +109,7 @@ struct vbo_exec_context * values are squashed down to the 32 attributes passed to the * vertex program below: */ - GLuint program_mode; + enum vp_mode program_mode; GLuint enabled_flags; const struct gl_client_array *inputs[VERT_ATTRIB_MAX]; } vtx; @@ -116,7 +122,7 @@ struct vbo_exec_context } eval; struct { - GLuint program_mode; + enum vp_mode program_mode; GLuint enabled_flags; GLuint array_obj; |