2012-08-28 14:53:52 +08:00
|
|
|
|
2012-08-16 11:39:47 +08:00
|
|
|
typedef unsigned int kmGLEnum;
|
|
|
|
|
2012-08-28 14:53:52 +08:00
|
|
|
class kmMat4 {
|
2012-08-16 11:39:47 +08:00
|
|
|
float mat[16];
|
2012-08-28 14:53:52 +08:00
|
|
|
};
|
2012-08-16 11:39:47 +08:00
|
|
|
|
|
|
|
void kmGLFreeAll(void);
|
|
|
|
void kmGLPushMatrix(void);
|
|
|
|
void kmGLPopMatrix(void);
|
|
|
|
void kmGLMatrixMode(kmGLEnum mode);
|
|
|
|
void kmGLLoadIdentity(void);
|
|
|
|
void kmGLLoadMatrix(const kmMat4* pIn);
|
|
|
|
void kmGLMultMatrix(const kmMat4* pIn);
|
|
|
|
void kmGLTranslatef(float x, float y, float z);
|
|
|
|
void kmGLRotatef(float angle, float x, float y, float z);
|
|
|
|
void kmGLScalef(float x, float y, float z);
|
|
|
|
void kmGLGetMatrix(kmGLEnum mode, kmMat4* pOut);
|