From eea1b95ead9e80ccaac6b4d87fb11ab9cee68909 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 10 Jan 2022 02:13:35 +0100 Subject: [PATCH] LibGL: Implement `glRotated` --- Userland/Libraries/LibGL/GL/gl.h | 1 + Userland/Libraries/LibGL/GLMat.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 6f119568dc1..a0ce9491aa8 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -479,6 +479,7 @@ GLAPI void glPushMatrix(); GLAPI void glPopMatrix(); GLAPI void glMultMatrixd(GLdouble const* matrix); GLAPI void glMultMatrixf(GLfloat const* matrix); +GLAPI void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); 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); diff --git a/Userland/Libraries/LibGL/GLMat.cpp b/Userland/Libraries/LibGL/GLMat.cpp index 901b027c93a..8efa4591551 100644 --- a/Userland/Libraries/LibGL/GLMat.cpp +++ b/Userland/Libraries/LibGL/GLMat.cpp @@ -112,6 +112,11 @@ void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdou g_gl_context->gl_ortho(left, right, bottom, top, nearVal, farVal); } +void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z) +{ + g_gl_context->gl_rotate(angle, x, y, z); +} + void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { g_gl_context->gl_rotate(angle, x, y, z);