diff options
Diffstat (limited to 'Userland/Libraries/LibGL/GLMat.cpp')
-rw-r--r-- | Userland/Libraries/LibGL/GLMat.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLMat.cpp b/Userland/Libraries/LibGL/GLMat.cpp index 18d7b73570..7b0bde969f 100644 --- a/Userland/Libraries/LibGL/GLMat.cpp +++ b/Userland/Libraries/LibGL/GLMat.cpp @@ -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(); |