diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 20d9d183d55..62a16caf05f 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -371,6 +371,7 @@ GLAPI void glPushMatrix(); GLAPI void glPopMatrix(); 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); GLAPI void glScalef(GLfloat x, GLfloat y, GLfloat z); GLAPI void glTranslatef(GLfloat x, GLfloat y, GLfloat z); GLAPI void glVertex2d(GLdouble x, GLdouble y); diff --git a/Userland/Libraries/LibGL/GLMat.cpp b/Userland/Libraries/LibGL/GLMat.cpp index c459f71e07f..1cdcca8228e 100644 --- a/Userland/Libraries/LibGL/GLMat.cpp +++ b/Userland/Libraries/LibGL/GLMat.cpp @@ -83,3 +83,23 @@ void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdou { g_gl_context->gl_ortho(left, right, bottom, top, nearVal, farVal); } + +void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) +{ + g_gl_context->gl_rotate(angle, x, y, z); +} + +void glScaled(GLdouble x, GLdouble y, GLdouble z) +{ + g_gl_context->gl_scale(x, y, z); +} + +void glScalef(GLfloat x, GLfloat y, GLfloat z) +{ + g_gl_context->gl_scale(x, y, z); +} + +void glTranslatef(GLfloat x, GLfloat y, GLfloat z) +{ + g_gl_context->gl_translate(x, y, z); +} diff --git a/Userland/Libraries/LibGL/GLVert.cpp b/Userland/Libraries/LibGL/GLVert.cpp index d2a2bc4ba69..453c28b7885 100644 --- a/Userland/Libraries/LibGL/GLVert.cpp +++ b/Userland/Libraries/LibGL/GLVert.cpp @@ -155,21 +155,6 @@ void glTexCoord4fv(const GLfloat* v) g_gl_context->gl_tex_coord(v[0], v[1], v[2], v[3]); } -void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) -{ - g_gl_context->gl_rotate(angle, x, y, z); -} - -void glScalef(GLfloat x, GLfloat y, GLfloat z) -{ - g_gl_context->gl_scale(x, y, z); -} - -void glTranslatef(GLfloat x, GLfloat y, GLfloat z) -{ - g_gl_context->gl_translate(x, y, z); -} - void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz) { g_gl_context->gl_normal(nx, ny, nz);