diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index dd3fa6a588..2b392d73ac 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -87,6 +87,8 @@ GLAPI void glPopMatrix(); 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 glVertex2f(GLfloat x, GLfloat y); +GLAPI void glVertex2fv(const GLfloat* v); 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); diff --git a/Userland/Libraries/LibGL/GLVert.cpp b/Userland/Libraries/LibGL/GLVert.cpp index 6119f53a6b..281207c0ee 100644 --- a/Userland/Libraries/LibGL/GLVert.cpp +++ b/Userland/Libraries/LibGL/GLVert.cpp @@ -20,6 +20,16 @@ void glEnd() g_gl_context->gl_end(); } +void glVertex2f(GLfloat x, GLfloat y) +{ + g_gl_context->gl_vertex(x, y, 0.0, 1.0); +} + +void glVertex2fv(const GLfloat* v) +{ + g_gl_context->gl_vertex(v[0], v[1], 0.0, 1.0); +} + void glVertex3f(GLfloat x, GLfloat y, GLfloat z) { g_gl_context->gl_vertex(x, y, z, 1.0);