OpenGL immediate mode: added gpuRotate3f to GPU_matrix
This commit is contained in:
parent
9c35907ca2
commit
8c09fa3be2
|
@ -84,6 +84,7 @@ void gpuTranslate3f(float x, float y, float z);
|
|||
void gpuTranslate3fv(const float vec[3]);
|
||||
void gpuScale3f(float x, float y, float z);
|
||||
void gpuScale3fv(const float vec[3]);
|
||||
void gpuRotate3f(float deg, float x, float y, float z); /* axis of rotation should be a unit vector */
|
||||
void gpuRotate3fv(float deg, const float axis[3]); /* axis of rotation should be a unit vector */
|
||||
void gpuRotateAxis(float deg, char axis); /* TODO: enum for axis? */
|
||||
|
||||
|
|
|
@ -294,6 +294,12 @@ void gpuMultMatrix2D(const float m[3][3])
|
|||
state.dirty = true;
|
||||
}
|
||||
|
||||
void gpuRotate3f(float deg, float x, float y, float z)
|
||||
{
|
||||
const float axis[3] = {x, y, z};
|
||||
gpuRotate3fv(deg, axis);
|
||||
}
|
||||
|
||||
void gpuRotate3fv(float deg, const float axis[3])
|
||||
{
|
||||
Mat4 m;
|
||||
|
|
Loading…
Reference in New Issue