diff options
author | Brian Paul <[email protected]> | 2004-03-13 18:27:06 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-13 18:27:06 +0000 |
commit | fde4c53a7d460a7fed929ef457172f3b245d875d (patch) | |
tree | e29ccdd74445143bc1e6ef7989bd6614cae7e8c7 /src/mesa/tnl/t_context.h | |
parent | 7a6b71ef2944bae1718e8167b2faaceb8422071c (diff) |
Added some comments. Minor const, int->GLint type changes, etc.
Diffstat (limited to 'src/mesa/tnl/t_context.h')
-rw-r--r-- | src/mesa/tnl/t_context.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index e7f561305a0..0911101c753 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -507,17 +507,21 @@ typedef void (*insert_func)( const struct tnl_clipspace_attr *a, GLubyte *v, const GLfloat *in ); +/** + * Describes how to convert/move a vertex attribute from a vertex array + * to a vertex structure. + */ struct tnl_clipspace_attr { - int attrib; - int vertoffset; - int vertattrsize; + GLuint attrib; /* which vertex attrib (0=position, etc) */ + GLuint vertoffset; /* position of the attrib in the vertex struct */ + GLuint vertattrsize; /* size of the attribute in bytes */ GLubyte *inputptr; - int inputstride; + GLuint inputstride; insert_func *insert; insert_func emit; extract_func extract; - const GLfloat *vp; + const GLfloat *vp; /* NDC->Viewport mapping matrix */ }; @@ -539,8 +543,10 @@ typedef void (*setup_func)( GLcontext *ctx, GLuint new_inputs); - - +/** + * Used to describe conversion of vertex arrays to vertex structures. + * I.e. Structure of arrays to arrays of structs. + */ struct tnl_clipspace { GLboolean need_extras; |