The CONST macro hack will go away soon.
Reviewed-by: Matt Turner <mattst88@gmail.com>
#ifdef DEST_4F
static void DEST_4F( GLfloat (*t)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_4FN
static void DEST_4FN( GLfloat (*t)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_3FN
static void DEST_3FN( GLfloat (*t)[3],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_1F
static void DEST_1F( GLfloat *t,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_4UB
static void DEST_4UB( GLubyte (*t)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_4US
static void DEST_4US( GLushort (*t)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_1UB
static void DEST_1UB( GLubyte *t,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
#ifdef DEST_1UI
static void DEST_1UI( GLuint *t,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
ARGS )
{
typedef void (*trans_1f_func)(GLfloat *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
typedef void (*trans_1ui_func)(GLuint *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
typedef void (*trans_1ub_func)(GLubyte *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
typedef void (*trans_4ub_func)(GLubyte (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
typedef void (*trans_4us_func)(GLushort (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
typedef void (*trans_4f_func)(GLfloat (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
typedef void (*trans_3fn_func)(GLfloat (*to)[3],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLuint start,
GLuint n );
static void trans_4_GLubyte_4ub_raw(GLubyte (*t)[4],
- CONST void *Ptr,
+ const void *Ptr,
GLuint stride,
ARGS )
{
* Translate vector of values to GLfloat [1].
*/
void _math_trans_1f(GLfloat *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
* Translate vector of values to GLuint [1].
*/
void _math_trans_1ui(GLuint *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
* Translate vector of values to GLubyte [1].
*/
void _math_trans_1ub(GLubyte *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
* Translate vector of values to GLubyte [4].
*/
void _math_trans_4ub(GLubyte (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
* Translate vector of values to GLchan [4].
*/
void _math_trans_4chan( GLchan (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
* Translate vector of values to GLushort [4].
*/
void _math_trans_4us(GLushort (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
* Translate vector of values to GLfloat [4].
*/
void _math_trans_4f(GLfloat (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
* Translate vector of values to GLfloat[4], normalized to [-1, 1].
*/
void _math_trans_4fn(GLfloat (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
* Translate vector of values to GLfloat[3], normalized to [-1, 1].
*/
void _math_trans_3fn(GLfloat (*to)[3],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
extern void _math_trans_1f(GLfloat *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
GLuint n );
extern void _math_trans_1ui(GLuint *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
GLuint n );
extern void _math_trans_1ub(GLubyte *to,
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
GLuint n );
extern void _math_trans_4ub(GLubyte (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
GLuint n );
extern void _math_trans_4chan( GLchan (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
GLuint n );
extern void _math_trans_4us(GLushort (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
/** Convert to floats w/out normalization (i.e. just cast) */
extern void _math_trans_4f(GLfloat (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
/** Convert to normalized floats in [0,1] or [-1, 1] */
extern void _math_trans_4fn(GLfloat (*to)[4],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint size,
GLuint n );
extern void _math_trans_3fn(GLfloat (*to)[3],
- CONST void *ptr,
+ const void *ptr,
GLuint stride,
GLenum type,
GLuint start,
typedef void (*dotprod_func)( GLfloat *out,
GLuint out_stride,
- CONST GLvector4f *coord_vec,
- CONST GLfloat plane[4] );
+ const GLvector4f *coord_vec,
+ const GLfloat plane[4] );
typedef void (*vec_copy_func)( GLvector4f *to,
- CONST GLvector4f *from );
+ const GLvector4f *from );
/*
* Functions for transformation of normals in the VB.
*/
-typedef void (_NORMAPIP normal_func)( CONST GLmatrix *mat,
+typedef void (_NORMAPIP normal_func)( const GLmatrix *mat,
GLfloat scale,
- CONST GLvector4f *in,
- CONST GLfloat lengths[],
+ const GLvector4f *in,
+ const GLfloat lengths[],
GLvector4f *dest );
* parameter, to allow a unified interface.
*/
typedef void (_XFORMAPIP transform_func)( GLvector4f *to_vec,
- CONST GLfloat m[16],
- CONST GLvector4f *from_vec );
+ const GLfloat m[16],
+ const GLvector4f *from_vec );
extern dotprod_func _mesa_dotprod_tab[5];