|
|
|
|
@ -54,6 +54,7 @@ struct GLVertexAttrib
|
|
|
|
|
char* name; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// TODO: add a note explaining usage when we implement complex entities
|
|
|
|
|
struct GLBufferToAttribMapping |
|
|
|
|
{ |
|
|
|
|
GLVertexAttrib* attrib; |
|
|
|
|
@ -86,6 +87,8 @@ struct GLBuffer
|
|
|
|
|
GLuint id; |
|
|
|
|
GLenum target; |
|
|
|
|
GLenum data_type; |
|
|
|
|
// FIXME: we should initialize both of these to UINT_MAX because '0' is a
|
|
|
|
|
// valid location and index
|
|
|
|
|
GLuint location; // NOTE: if used as backing for vertex attribute
|
|
|
|
|
GLuint binding_idx; // NOTE: if used as backing from uniform buffer object
|
|
|
|
|
char* name; |
|
|
|
|
|