32 lines
608 B
C
32 lines
608 B
C
|
|
#ifndef GLSLUTIL_H
|
|
#define GLSLUTIL_H
|
|
|
|
#ifdef GL_INCLUDE_FILE
|
|
#include GL_INCLUDE_FILE
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
|
|
typedef float guMatrix4x4[4][4];
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void guMatrixLoadIdentity(guMatrix4x4 *m);
|
|
void guMatrixMult(guMatrix4x4 *m, guMatrix4x4 *a, guMatrix4x4 *b);
|
|
void guMatrixTranslate(guMatrix4x4 *m, float x, float y, float z);
|
|
void guMatrixScale(guMatrix4x4 *m, float x, float y, float z);
|
|
void guMatrixFrustum(guMatrix4x4 *m,
|
|
float left, float right,
|
|
float bottom, float top,
|
|
float near, float far);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|