summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_context.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-03-13 18:27:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-03-13 18:27:06 +0000
commitfde4c53a7d460a7fed929ef457172f3b245d875d (patch)
treee29ccdd74445143bc1e6ef7989bd6614cae7e8c7 /src/mesa/tnl/t_context.h
parent7a6b71ef2944bae1718e8167b2faaceb8422071c (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.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index e7f561305a..0911101c75 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;