summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vertex.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-01-05 15:24:53 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-01-05 15:24:53 +0000
commit588225770c60834dfd2a95850435cc549167dc05 (patch)
treeeded850ee7eabc94d90e1b067df660233ad7fc48 /src/mesa/tnl/t_vertex.h
parentce81fe69da00f86464a109243d6e109b71335329 (diff)
Beef up t_vertex.c:
- cope with input vectors with size less than that of the emitted attribute. - cope with vertices with 'holes' inside and between vertices. Fix calculation of tnl->render_inputs to work with fp programs. Mirror VB->PointSizePtr in VB->AttribPtr so that it can work with t_vertex.c. Transition swrast_setup/ to use t_vertex.c to build swrast vertices.
Diffstat (limited to 'src/mesa/tnl/t_vertex.h')
-rw-r--r--src/mesa/tnl/t_vertex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_vertex.h b/src/mesa/tnl/t_vertex.h
index 050f525e29..10d67631c5 100644
--- a/src/mesa/tnl/t_vertex.h
+++ b/src/mesa/tnl/t_vertex.h
@@ -51,15 +51,13 @@ enum tnl_attr_format {
EMIT_4UB_4F_BGRA, /* for color */
EMIT_4UB_4F_RGBA, /* for color */
EMIT_4CHAN_4F_RGBA, /* for swrast color */
- EMIT_1F_PAD_4F, /* for swrast texcoords */
- EMIT_2F_PAD_4F, /* for swrast texcoords */
- EMIT_3F_PAD_4F, /* for swrast texcoords */
EMIT_MAX
};
struct tnl_attr_map {
GLuint attrib; /* _TNL_ATTRIB_ enum */
enum tnl_attr_format format;
+ GLuint offset;
};
@@ -90,7 +88,9 @@ extern void *_tnl_get_vertex( GLcontext *ctx, GLuint nr );
*/
extern GLuint _tnl_install_attrs( GLcontext *ctx,
const struct tnl_attr_map *map,
- GLuint nr, const GLfloat *vp );
+ GLuint nr, const GLfloat *vp,
+ GLuint unpacked_size );
+