#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "enums.h"
#include "macros.h"
#include "matrix.h"
#include "mtypes.h"
#include "math/m_matrix.h"
Functions | |
void GLAPIENTRY | _mesa_Frustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearval, GLdouble farval) |
Apply a perspective projection matrix. | |
void GLAPIENTRY | _mesa_Ortho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearval, GLdouble farval) |
Apply an orthographic projection matrix. | |
void GLAPIENTRY | _mesa_MatrixMode (GLenum mode) |
Set the current matrix stack. | |
void GLAPIENTRY | _mesa_PushMatrix (void) |
Push the current matrix stack. | |
void GLAPIENTRY | _mesa_PopMatrix (void) |
Pop the current matrix stack. | |
void GLAPIENTRY | _mesa_LoadIdentity (void) |
Replace the current matrix with the identity matrix. | |
void GLAPIENTRY | _mesa_LoadMatrixf (const GLfloat *m) |
Replace the current matrix with a given matrix. | |
void GLAPIENTRY | _mesa_MultMatrixf (const GLfloat *m) |
Multiply the current matrix with a given matrix. | |
void GLAPIENTRY | _mesa_Rotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z) |
Multiply the current matrix with a rotation matrix. | |
void GLAPIENTRY | _mesa_Scalef (GLfloat x, GLfloat y, GLfloat z) |
Multiply the current matrix with a general scaling matrix. | |
void GLAPIENTRY | _mesa_Translatef (GLfloat x, GLfloat y, GLfloat z) |
Multiply the current matrix with a translation matrix. | |
void GLAPIENTRY | _mesa_LoadMatrixd (const GLdouble *m) |
void GLAPIENTRY | _mesa_MultMatrixd (const GLdouble *m) |
void GLAPIENTRY | _mesa_Rotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z) |
void GLAPIENTRY | _mesa_Scaled (GLdouble x, GLdouble y, GLdouble z) |
void GLAPIENTRY | _mesa_Translated (GLdouble x, GLdouble y, GLdouble z) |
void GLAPIENTRY | _mesa_LoadTransposeMatrixfARB (const GLfloat *m) |
void GLAPIENTRY | _mesa_LoadTransposeMatrixdARB (const GLdouble *m) |
void GLAPIENTRY | _mesa_MultTransposeMatrixfARB (const GLfloat *m) |
void GLAPIENTRY | _mesa_MultTransposeMatrixdARB (const GLdouble *m) |
State management | |
static void | update_projection (GLcontext *ctx) |
Update the projection matrix stack. | |
static void | calculate_model_project_matrix (GLcontext *ctx) |
Calculate the combined modelview-projection matrix. | |
void | _mesa_update_modelview_project (GLcontext *ctx, GLuint new_state) |
Updates the combined modelview-projection matrix. | |
static void | init_matrix_stack (struct gl_matrix_stack *stack, GLuint maxDepth, GLuint dirtyFlag) |
Matrix stack initialization. | |
static void | free_matrix_stack (struct gl_matrix_stack *stack) |
Free matrix stack. | |
Initialization | |
void | _mesa_init_matrix (GLcontext *ctx) |
Initialize the context matrix data. | |
void | _mesa_free_matrix_data (GLcontext *ctx) |
Free the context matrix data. | |
void | _mesa_init_transform (GLcontext *ctx) |
Initialize the context transform attribute group. |
void _mesa_free_matrix_data | ( | GLcontext * | ctx | ) |
Free the context matrix data.
ctx | GL context. |
void GLAPIENTRY _mesa_Frustum | ( | GLdouble | left, | |
GLdouble | right, | |||
GLdouble | bottom, | |||
GLdouble | top, | |||
GLdouble | nearval, | |||
GLdouble | farval | |||
) |
Apply a perspective projection matrix.
left | left clipping plane coordinate. | |
right | right clipping plane coordinate. | |
bottom | bottom clipping plane coordinate. | |
top | top clipping plane coordinate. | |
nearval | distance to the near clipping plane. | |
farval | distance to the far clipping plane. |
void _mesa_init_matrix | ( | GLcontext * | ctx | ) |
Initialize the context matrix data.
ctx | GL context. |
void _mesa_init_transform | ( | GLcontext * | ctx | ) |
Initialize the context transform attribute group.
ctx | GL context. |
void GLAPIENTRY _mesa_LoadIdentity | ( | void | ) |
Replace the current matrix with the identity matrix.
void GLAPIENTRY _mesa_LoadMatrixd | ( | const GLdouble * | m | ) |
void GLAPIENTRY _mesa_LoadMatrixf | ( | const GLfloat * | m | ) |
Replace the current matrix with a given matrix.
m | matrix. |
void GLAPIENTRY _mesa_LoadTransposeMatrixdARB | ( | const GLdouble * | m | ) |
void GLAPIENTRY _mesa_LoadTransposeMatrixfARB | ( | const GLfloat * | m | ) |
void GLAPIENTRY _mesa_MatrixMode | ( | GLenum | mode | ) |
Set the current matrix stack.
mode | matrix stack. |
void GLAPIENTRY _mesa_MultMatrixd | ( | const GLdouble * | m | ) |
void GLAPIENTRY _mesa_MultMatrixf | ( | const GLfloat * | m | ) |
Multiply the current matrix with a given matrix.
m | matrix. |
void GLAPIENTRY _mesa_MultTransposeMatrixdARB | ( | const GLdouble * | m | ) |
void GLAPIENTRY _mesa_MultTransposeMatrixfARB | ( | const GLfloat * | m | ) |
void GLAPIENTRY _mesa_Ortho | ( | GLdouble | left, | |
GLdouble | right, | |||
GLdouble | bottom, | |||
GLdouble | top, | |||
GLdouble | nearval, | |||
GLdouble | farval | |||
) |
Apply an orthographic projection matrix.
left | left clipping plane coordinate. | |
right | right clipping plane coordinate. | |
bottom | bottom clipping plane coordinate. | |
top | top clipping plane coordinate. | |
nearval | distance to the near clipping plane. | |
farval | distance to the far clipping plane. |
void GLAPIENTRY _mesa_PopMatrix | ( | void | ) |
Pop the current matrix stack.
void GLAPIENTRY _mesa_PushMatrix | ( | void | ) |
Push the current matrix stack.
void GLAPIENTRY _mesa_Rotated | ( | GLdouble | angle, | |
GLdouble | x, | |||
GLdouble | y, | |||
GLdouble | z | |||
) |
void GLAPIENTRY _mesa_Rotatef | ( | GLfloat | angle, | |
GLfloat | x, | |||
GLfloat | y, | |||
GLfloat | z | |||
) |
Multiply the current matrix with a rotation matrix.
angle | angle of rotation, in degrees. | |
x | rotation vector x coordinate. | |
y | rotation vector y coordinate. | |
z | rotation vector z coordinate. |
void GLAPIENTRY _mesa_Scaled | ( | GLdouble | x, | |
GLdouble | y, | |||
GLdouble | z | |||
) |
void GLAPIENTRY _mesa_Scalef | ( | GLfloat | x, | |
GLfloat | y, | |||
GLfloat | z | |||
) |
Multiply the current matrix with a general scaling matrix.
x | x axis scale factor. | |
y | y axis scale factor. | |
z | z axis scale factor. |
void GLAPIENTRY _mesa_Translated | ( | GLdouble | x, | |
GLdouble | y, | |||
GLdouble | z | |||
) |
void GLAPIENTRY _mesa_Translatef | ( | GLfloat | x, | |
GLfloat | y, | |||
GLfloat | z | |||
) |
Multiply the current matrix with a translation matrix.
x | translation vector x coordinate. | |
y | translation vector y coordinate. | |
z | translation vector z coordinate. |
void _mesa_update_modelview_project | ( | GLcontext * | ctx, | |
GLuint | new_state | |||
) |
Updates the combined modelview-projection matrix.
ctx | GL context. | |
new_state | new state bit mask. |
static void calculate_model_project_matrix | ( | GLcontext * | ctx | ) | [static] |
Calculate the combined modelview-projection matrix.
ctx | GL context. |
static void free_matrix_stack | ( | struct gl_matrix_stack * | stack | ) | [static] |
Free matrix stack.
stack | matrix stack. |
static void init_matrix_stack | ( | struct gl_matrix_stack * | stack, | |
GLuint | maxDepth, | |||
GLuint | dirtyFlag | |||
) | [static] |
Matrix stack initialization.
Initialize a matrix stack.
stack | matrix stack. | |
maxDepth | maximum stack depth. | |
dirtyFlag | dirty flag. |
maxDepth
elements for the matrix stack and calls _math_matrix_ctr() and _math_matrix_alloc_inv() for each element to initialize it.
static void update_projection | ( | GLcontext * | ctx | ) | [static] |
Update the projection matrix stack.
ctx | GL context. |