From 4eebc90a174722422daea6352d4e980bc81b4bb2 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 20 Feb 2001 18:28:52 +0000 Subject: Added GLvector4chan type, removed lots of CHAN_TYPE ifdefs. --- src/mesa/math/m_vector.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/mesa/math/m_vector.h') diff --git a/src/mesa/math/m_vector.h b/src/mesa/math/m_vector.h index 12200f960c4..fc51b2006c9 100644 --- a/src/mesa/math/m_vector.h +++ b/src/mesa/math/m_vector.h @@ -1,4 +1,4 @@ -/* $Id: m_vector.h,v 1.3 2001/01/24 00:04:59 brianp Exp $ */ +/* $Id: m_vector.h,v 1.4 2001/02/20 18:28:52 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -33,6 +33,7 @@ #define _M_VECTOR_H_ #include "glheader.h" +#include "mtypes.h" /* hack for GLchan */ #define VEC_DIRTY_0 0x1 @@ -132,6 +133,25 @@ extern void gl_vector4ub_alloc( GLvector4ub *v, GLuint flags, GLuint count, extern void gl_vector4ub_free( GLvector4ub * ); +/* For 4 * GLchan values. + */ +typedef struct { + GLchan (*data)[4]; + GLchan *start; + GLuint count; + GLuint stride; + GLuint flags; + void *storage; +} GLvector4chan; + +extern void gl_vector4chan_init( GLvector4chan *v, GLuint flags, + GLchan (*storage)[4] ); +extern void gl_vector4chan_alloc( GLvector4chan *v, GLuint flags, GLuint count, + GLuint alignment ); +extern void gl_vector4chan_free( GLvector4chan * ); + + + /* For 4 * GLushort rgba values. */ -- cgit v1.2.3