diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-12-01 16:13:04 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-12 21:51:08 +0100 |
commit | 07bf37be7594a63757b8ea179fdf77295cfab0fc (patch) | |
tree | 3020362b0b8136ca25ecbbe553ef85b1f5e15083 /Userland | |
parent | 9dbc8d7e3ca134f81f348cf898b32496e30afaf8 (diff) | |
download | serenity-07bf37be7594a63757b8ea179fdf77295cfab0fc.zip |
LibGL: Implement `glScaled`
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/GLMat.cpp | 20 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/GLVert.cpp | 15 |
3 files changed, 21 insertions, 15 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 20d9d183d5..62a16caf05 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 c459f71e07..1cdcca8228 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 d2a2bc4ba6..453c28b788 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); |