#include "main/glheader.h"
#include "main/macros.h"
-#include "main/mtypes.h" /* GLchan hack */
#include "m_translate.h"
_math_trans_4ub_tab[size][TYPE_IDX(type)]( to, ptr, stride, start, n );
}
-/**
- * Translate vector of values to GLchan [4].
- */
-void _math_trans_4chan( GLchan (*to)[4],
- const void *ptr,
- GLuint stride,
- GLenum type,
- GLuint size,
- GLuint start,
- GLuint n )
-{
-#if CHAN_TYPE == GL_UNSIGNED_BYTE
- _math_trans_4ub( to, ptr, stride, type, size, start, n );
-#elif CHAN_TYPE == GL_UNSIGNED_SHORT
- _math_trans_4us( to, ptr, stride, type, size, start, n );
-#elif CHAN_TYPE == GL_FLOAT
- _math_trans_4fn( to, ptr, stride, type, size, start, n );
-#endif
-}
-
/**
* Translate vector of values to GLushort [4].
*/
#include "main/compiler.h"
#include "main/glheader.h"
-#include "main/mtypes.h" /* hack for GLchan */
-#include "swrast/s_chan.h"
/**
* Array translation.
GLuint start,
GLuint n );
-extern void _math_trans_4chan( GLchan (*to)[4],
- const void *ptr,
- GLuint stride,
- GLenum type,
- GLuint size,
- GLuint start,
- GLuint n );
-
extern void _math_trans_4us(GLushort (*to)[4],
const void *ptr,
GLuint stride,