1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibGL: Impement glLoadMatrixf and underlying function

This commit is contained in:
Jesse Buhagiar 2021-04-24 22:43:42 +10:00 committed by Andreas Kling
parent ea0df0b5da
commit f07a7f7b94
5 changed files with 32 additions and 0 deletions

View file

@ -35,6 +35,17 @@ void glPopMatrix()
g_gl_context->gl_pop_matrix();
}
void glLoadMatrixf(const GLfloat* matrix)
{
FloatMatrix4x4 mat(
matrix[0], matrix[1], matrix[2], matrix[3],
matrix[4], matrix[5], matrix[6], matrix[7],
matrix[8], matrix[9], matrix[10], matrix[11],
matrix[12], matrix[13], matrix[14], matrix[15]);
g_gl_context->gl_load_matrix(mat);
}
void glLoadIdentity()
{
g_gl_context->gl_load_identity();