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

LibGL: Implement glMultMatrixd

This commit is contained in:
Jelle Raaijmakers 2021-12-24 14:50:19 +01:00 committed by Andreas Kling
parent 60fa921daa
commit 4a36d6b439
2 changed files with 6 additions and 0 deletions

View file

@ -474,6 +474,7 @@ GLAPI void glMatrixMode(GLenum mode);
GLAPI void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearVal, GLdouble farVal);
GLAPI void glPushMatrix();
GLAPI void glPopMatrix();
GLAPI void glMultMatrixd(GLdouble const* matrix);
GLAPI void glMultMatrixf(GLfloat const* matrix);
GLAPI void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
GLAPI void glScaled(GLdouble x, GLdouble y, GLdouble z);

View file

@ -67,6 +67,11 @@ static constexpr Matrix4x4<O> transpose_input_matrix(I const* matrix)
// clang-format on
}
void glMultMatrixd(GLdouble const* matrix)
{
g_gl_context->gl_mult_matrix(transpose_input_matrix<double, float>(matrix));
}
void glMultMatrixf(GLfloat const* matrix)
{
g_gl_context->gl_mult_matrix(transpose_input_matrix<float, float>(matrix));