diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 7de99d5aeb..dd3fa6a588 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -88,6 +88,7 @@ GLAPI void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); GLAPI void glScalef(GLfloat x, GLfloat y, GLfloat z); GLAPI void glTranslatef(GLfloat x, GLfloat y, GLfloat z); GLAPI void glVertex3f(GLfloat x, GLfloat y, GLfloat z); +GLAPI void glVertex3fv(const GLfloat* v); GLAPI void glViewport(GLint x, GLint y, GLsizei width, GLsizei height); #ifdef __cplusplus diff --git a/Userland/Libraries/LibGL/GLVert.cpp b/Userland/Libraries/LibGL/GLVert.cpp index e972741327..6119f53a6b 100644 --- a/Userland/Libraries/LibGL/GLVert.cpp +++ b/Userland/Libraries/LibGL/GLVert.cpp @@ -25,6 +25,11 @@ void glVertex3f(GLfloat x, GLfloat y, GLfloat z) g_gl_context->gl_vertex(x, y, z, 1.0); } +void glVertex3fv(const GLfloat* v) +{ + g_gl_context->gl_vertex(v[0], v[1], v[2], 1.0); +} + void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { g_gl_context->gl_rotate(angle, x, y, z);