core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Modules   Data Structures   File List   Data Fields   Globals  

m_xform.h File Reference

#include "glheader.h"
#include "config.h"
#include "math/m_vector.h"
#include "math/m_matrix.h"

Defines

#define _XFORMAPI
#define _XFORMAPIP   *
#define CLIP_RIGHT_SHIFT   0
#define CLIP_LEFT_SHIFT   1
#define CLIP_TOP_SHIFT   2
#define CLIP_BOTTOM_SHIFT   3
#define CLIP_NEAR_SHIFT   4
#define CLIP_FAR_SHIFT   5
#define CLIP_RIGHT_BIT   0x01
#define CLIP_LEFT_BIT   0x02
#define CLIP_TOP_BIT   0x04
#define CLIP_BOTTOM_BIT   0x08
#define CLIP_NEAR_BIT   0x10
#define CLIP_FAR_BIT   0x20
#define CLIP_USER_BIT   0x40
#define CLIP_CULL_BIT   0x80
#define CLIP_ALL_BITS   0x3f
#define NORM_RESCALE   0x1
#define NORM_NORMALIZE   0x2
#define NORM_TRANSFORM   0x4
#define NORM_TRANSFORM_NO_ROT   0x8
#define TransformRaw(to, mat, from)

Typedefs

typedef GLvector4f *_XFORMAPIP
clip_func GLvector4f *[] 
vClip
typedef void(* dotprod_func )(GLfloat *out, GLuint out_stride, CONST GLvector4f *coord_vec, CONST GLfloat plane[4])
typedef void(* vec_copy_func )(GLvector4f *to, CONST GLvector4f *from)
typedef GLfloat scale
typedef GLfloat CONST GLvector4fin
typedef GLfloat CONST GLvector4f
CONST GLfloat 
lengths []
typedef GLfloat CONST GLvector4f
CONST GLfloat GLvector4f
dest
typedef CONST GLfloat m [16]
typedef CONST GLfloat CONST
GLvector4f
from_vec

Functions

void _mesa_transform_vector (GLfloat u[4], CONST GLfloat v[4], CONST GLfloat m[16])
void _math_init_transformation (void)
typedef void (_NORMAPIP normal_func)(CONST GLmatrix *mat
typedef void (_XFORMAPIP transform_func)(GLvector4f *to_vec
GLvector4f_mesa_project_points (GLvector4f *to, CONST GLvector4f *from)
void _mesa_transform_bounds3 (GLubyte *orMask, GLubyte *andMask, CONST GLfloat m[16], CONST GLfloat src[][3])
void _mesa_transform_bounds2 (GLubyte *orMask, GLubyte *andMask, CONST GLfloat m[16], CONST GLfloat src[][3])
void _mesa_transform_point_sz (GLfloat Q[4], CONST GLfloat M[16], CONST GLfloat P[4], GLuint sz)

Variables

dotprod_func _mesa_dotprod_tab [5]
vec_copy_func _mesa_copy_tab [0x10]
vec_copy_func _mesa_copy_clean_tab [5]
clip_func _mesa_clip_tab [5]
clip_func _mesa_clip_np_tab [5]
normal_func _mesa_normal_tab [0xf]
transform_func * _mesa_transform_tab [5]

Define Documentation

#define _XFORMAPI
 

#define _XFORMAPIP   *
 

#define CLIP_ALL_BITS   0x3f
 

#define CLIP_BOTTOM_BIT   0x08
 

#define CLIP_BOTTOM_SHIFT   3
 

#define CLIP_CULL_BIT   0x80
 

#define CLIP_FAR_BIT   0x20
 

#define CLIP_FAR_SHIFT   5
 

#define CLIP_LEFT_BIT   0x02
 

#define CLIP_LEFT_SHIFT   1
 

#define CLIP_NEAR_BIT   0x10
 

#define CLIP_NEAR_SHIFT   4
 

#define CLIP_RIGHT_BIT   0x01
 

#define CLIP_RIGHT_SHIFT   0
 

#define CLIP_TOP_BIT   0x04
 

#define CLIP_TOP_SHIFT   2
 

#define CLIP_USER_BIT   0x40
 

#define NORM_NORMALIZE   0x2
 

#define NORM_RESCALE   0x1
 

#define NORM_TRANSFORM   0x4
 

#define NORM_TRANSFORM_NO_ROT   0x8
 

#define TransformRaw to,
mat,
from   
 

Value:

( _mesa_transform_tab[(from)->size][(mat)->type]( to, (mat)->m, from ), \
     (to) )


Typedef Documentation

typedef GLfloat CONST GLvector4f CONST GLfloat GLvector4f* dest
 

typedef void(* dotprod_func)( GLfloat *out, GLuint out_stride, CONST GLvector4f *coord_vec, CONST GLfloat plane[4] )
 

typedef CONST GLfloat CONST GLvector4f* from_vec
 

typedef GLfloat CONST GLvector4f* in
 

typedef GLfloat CONST GLvector4f CONST GLfloat lengths[]
 

typedef CONST GLfloat m[16]
 

typedef GLfloat scale
 

typedef GLvector4f* _XFORMAPIP clip_func GLvector4f *[] vClip
 

typedef void(* vec_copy_func)( GLvector4f *to, CONST GLvector4f *from )
 


Function Documentation

void _math_init_transformation void   
 

GLvector4f* _mesa_project_points GLvector4f   to,
CONST GLvector4f   from
 

void _mesa_transform_bounds2 GLubyte *    orMask,
GLubyte *    andMask,
CONST GLfloat    m[16],
CONST GLfloat    src[][3]
 

void _mesa_transform_bounds3 GLubyte *    orMask,
GLubyte *    andMask,
CONST GLfloat    m[16],
CONST GLfloat    src[][3]
 

void _mesa_transform_point_sz GLfloat    Q[4],
CONST GLfloat    M[16],
CONST GLfloat    P[4],
GLuint    sz
 

void _mesa_transform_vector GLfloat    u[4],
CONST GLfloat    v[4],
CONST GLfloat    m[16]
 

typedef void _XFORMAPIP    transform_func
 

typedef void _NORMAPIP    normal_func
 


Variable Documentation

clip_func _mesa_clip_np_tab[5]
 

clip_func _mesa_clip_tab[5]
 

vec_copy_func _mesa_copy_clean_tab[5]
 

vec_copy_func _mesa_copy_tab[0x10]
 

dotprod_func _mesa_dotprod_tab[5]
 

normal_func _mesa_normal_tab[0xf]
 

transform_func* _mesa_transform_tab[5]
 


Generated on Sun May 16 15:55:16 2004 for Mesa math module by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001