add guMatrixScale()
This commit is contained in:
parent
e76503001e
commit
9ad00aee7f
@ -46,6 +46,18 @@ void guMatrixTranslate(guMatrix4x4 *m, float x, float y, float z)
|
||||
}
|
||||
}
|
||||
|
||||
void guMatrixScale(guMatrix4x4 *m, float x, float y, float z)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
float *base = &(*m)[i][0];
|
||||
base[0] *= x;
|
||||
base[1] *= y;
|
||||
base[2] *= z;
|
||||
}
|
||||
}
|
||||
|
||||
void guMatrixFrustum(guMatrix4x4 *m,
|
||||
float left, float right,
|
||||
float bottom, float top,
|
||||
|
@ -17,6 +17,7 @@ extern "C" {
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user