diff options
author | Brian <[email protected]> | 2007-01-09 17:49:24 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-01-09 17:49:24 -0700 |
commit | 3209c3ed0d82c158eed1020759aacf51ba1c1ad5 (patch) | |
tree | a2dad53d32547ef01b36fd9296dc4f68e52292f8 /src/mesa/shader/prog_parameter.h | |
parent | 5e75db12d7b17f0295e8099bd357220df97d5013 (diff) |
Implement vertex attribute binding.
Users can set explicit binding with glBindAttribLocation(), otherwise the
linker will allocate generic attribute slots.
Diffstat (limited to 'src/mesa/shader/prog_parameter.h')
-rw-r--r-- | src/mesa/shader/prog_parameter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_parameter.h b/src/mesa/shader/prog_parameter.h index 0db2bcd314f..ab4d7300188 100644 --- a/src/mesa/shader/prog_parameter.h +++ b/src/mesa/shader/prog_parameter.h @@ -108,6 +108,10 @@ _mesa_add_varying(struct gl_program_parameter_list *paramList, const char *name, GLuint size); extern GLint +_mesa_add_attribute(struct gl_program_parameter_list *paramList, + const char *name, GLint attrib); + +extern GLint _mesa_add_state_reference(struct gl_program_parameter_list *paramList, const GLint *stateTokens); |