Graphics Reference
In-Depth Information
x
,
y
,
z
specify the
x
-,
y
-, and
z
-coordinates of a vector
Returns:
The new matrix after the rotation operation has been performed is
returned in
result
void ESUTIL_API
esMatrixMultiply
(ESMatrix *
result,
ESMatrix *srcA,
ESMatrix *srcB)
This function multiplies the matrices
srcA
and
srcB
and returns the
multiplied matrix in
result
.
result = srcA × srcB
Parameters:
result
pointer to memory where the multiplied matrix will be
returned
srcA
,
srcB
input matrices to be multiplied
Returns:
A multiplied matrix
void ESUTIL_API
esMatrixLoadIdentity
(ESMatrix *
result
)
Parameters:
result
pointer to memory where the identity matrix will be returned
Returns:
An identity matrix
void ESUTIL_API
esMatrixLookAt
(ESMatrix *
result,
GLfloat
posX,
GLfloat
posY,
GLfloat
posZ,
GLfloat
lookAtX,
GLfloat
lookAtY,
GLfloat
lookAtZ,
GLfloat
upX,
GLfloat
upY,
GLfloat
upZ
)
Generate a view transformation matrix using eye position, look at
vector, and up vector.
(continues)