Graphics Reference
In-Depth Information
void ESUTIL_API
esScale
(ESMatrix *
result,
GLfloat
sx,
GLfloat
sy,
GLfloat
sz
)
Multiply matrix specified by
result
with a scaling matrix and return
new matrix in
result
.
Parameters:
result
the input matrix
sx,sy,sz
specify the scale factors along the
x
-,
y
-, and
z
-axes,
respectively
Returns:
The new matrix after the scaling operation has been performed is
returned in
result
void ESUTIL_API
esTranslate
(ESMatrix *
result,
GLfloat
tx,
GLfloat
ty,
GLfloat
tz
)
Multiply matrix specified by
result
with a translation matrix and
return new matrix in
result
.
Parameters:
result
the input matrix
tx
,
ty
,
tz
specify the translate factors along the
x
-,
y
-, and
z
-axes,
respectively
Returns:
The new matrix after the translation operation has been performed is
returned in
result
void ESUTIL_API
esRotate
(ESMatrix *
result,
GLfloat
angle,
GLfloat
x,
GLfloat
y,
GLfloat
z
)
Multiply matrix specified by
result
with a rotation matrix and return
new matrix in
result
.
Parameters:
result
the input matrix
angle
specifies the angle of rotation, in degrees