The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SDL_gpu_GL_matrix.h
Go to the documentation of this file.
1 #ifndef _SDL_GPU_GL_MATRIX_H__
2 #define _SDL_GPU_GL_MATRIX_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 // Basic matrix operations
9 void GPU_MatrixCopy(float* result, const float* A);
10 void GPU_MatrixIdentity(float* result);
11 void GPU_Multiply4x4(float* result, float* A, float* B);
12 void GPU_MultiplyAndAssign(float* result, float* A);
13 
14 
15 // State-specific operations
16 #define GPU_MODELVIEW 0
17 #define GPU_PROJECTION 1
18 
19 const char* GPU_GetMatrixString(float* A);
20 void GPU_MatrixMode(int matrix_mode);
21 float* GPU_GetCurrentMatrix(void);
22 float* GPU_GetModelView(void);
23 float* GPU_GetProjection(void);
25 void GPU_PushMatrix(void);
26 void GPU_PopMatrix(void);
27 void GPU_LoadIdentity(void);
28 void GPU_Ortho(float left, float right, float bottom, float top, float near, float far);
29 void GPU_Frustum(float right, float left, float bottom, float top, float near, float far);
30 void GPU_Translate(float x, float y, float z);
31 void GPU_Scale(float sx, float sy, float sz);
32 void GPU_Rotate(float degrees, float x, float y, float z);
33 void GPU_MultMatrix(float* matrix4x4);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif
GLdouble GLdouble z
Definition: glew.h:1527
void GPU_LoadIdentity(void)
float * GPU_GetModelView(void)
void GPU_MatrixMode(int matrix_mode)
void GPU_MultiplyAndAssign(float *result, float *A)
float * GPU_GetProjection(void)
void GPU_MatrixIdentity(float *result)
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1220
void GPU_Translate(float x, float y, float z)
void GPU_Ortho(float left, float right, float bottom, float top, float near, float far)
void GPU_GetModelViewProjection(float *result)
float * GPU_GetCurrentMatrix(void)
GLuint64EXT * result
Definition: glew.h:10727
void GPU_Rotate(float degrees, float x, float y, float z)
void GPU_Multiply4x4(float *result, float *A, float *B)
void GPU_MultMatrix(float *matrix4x4)
void GPU_Scale(float sx, float sy, float sz)
lu_byte right
Definition: lparser.cpp:1020
void GPU_Frustum(float right, float left, float bottom, float top, float near, float far)
GLint left
Definition: glew.h:5907
GLint GLint GLint GLint GLint x
Definition: glew.h:1220
const char * GPU_GetMatrixString(float *A)
void GPU_PopMatrix(void)
GLint GLint bottom
Definition: glew.h:5907
void GPU_MatrixCopy(float *result, const float *A)
void GPU_PushMatrix(void)