mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
LibGL: Implement glMultMatrixd
This commit is contained in:
parent
60fa921daa
commit
4a36d6b439
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue