Use const for pointer float array (#2807)
* Use const for pointer float array * missed a definition
This commit is contained in:
parent
2c77b31e30
commit
2fd6d7e8c0
1 changed files with 3 additions and 3 deletions
|
@ -519,7 +519,7 @@ RLAPI void rlLoadIdentity(void); // Reset current matrix to
|
||||||
RLAPI void rlTranslatef(float x, float y, float z); // Multiply the current matrix by a translation matrix
|
RLAPI void rlTranslatef(float x, float y, float z); // Multiply the current matrix by a translation matrix
|
||||||
RLAPI void rlRotatef(float angle, float x, float y, float z); // Multiply the current matrix by a rotation matrix
|
RLAPI void rlRotatef(float angle, float x, float y, float z); // Multiply the current matrix by a rotation matrix
|
||||||
RLAPI void rlScalef(float x, float y, float z); // Multiply the current matrix by a scaling matrix
|
RLAPI void rlScalef(float x, float y, float z); // Multiply the current matrix by a scaling matrix
|
||||||
RLAPI void rlMultMatrixf(float *matf); // Multiply the current matrix by another matrix
|
RLAPI void rlMultMatrixf(const float *matf); // Multiply the current matrix by another matrix
|
||||||
RLAPI void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar);
|
RLAPI void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar);
|
||||||
RLAPI void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar);
|
RLAPI void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar);
|
||||||
RLAPI void rlViewport(int x, int y, int width, int height); // Set the viewport area
|
RLAPI void rlViewport(int x, int y, int width, int height); // Set the viewport area
|
||||||
|
@ -1048,7 +1048,7 @@ void rlLoadIdentity(void) { glLoadIdentity(); }
|
||||||
void rlTranslatef(float x, float y, float z) { glTranslatef(x, y, z); }
|
void rlTranslatef(float x, float y, float z) { glTranslatef(x, y, z); }
|
||||||
void rlRotatef(float angle, float x, float y, float z) { glRotatef(angle, x, y, z); }
|
void rlRotatef(float angle, float x, float y, float z) { glRotatef(angle, x, y, z); }
|
||||||
void rlScalef(float x, float y, float z) { glScalef(x, y, z); }
|
void rlScalef(float x, float y, float z) { glScalef(x, y, z); }
|
||||||
void rlMultMatrixf(float *matf) { glMultMatrixf(matf); }
|
void rlMultMatrixf(const float *matf) { glMultMatrixf(matf); }
|
||||||
#endif
|
#endif
|
||||||
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
||||||
// Choose the current matrix to be transformed
|
// Choose the current matrix to be transformed
|
||||||
|
@ -1173,7 +1173,7 @@ void rlScalef(float x, float y, float z)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Multiply the current matrix by another matrix
|
// Multiply the current matrix by another matrix
|
||||||
void rlMultMatrixf(float *matf)
|
void rlMultMatrixf(const float *matf)
|
||||||
{
|
{
|
||||||
// Matrix creation from array
|
// Matrix creation from array
|
||||||
Matrix mat = { matf[0], matf[4], matf[8], matf[12],
|
Matrix mat = { matf[0], matf[4], matf[8], matf[12],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue