diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-04-24 17:48:45 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-08 10:13:22 +0200 |
commit | 6b11a5688dd2514ed9166fef06b4e7a9e0350c79 (patch) | |
tree | 17ea7fdfd1e8068f2b47a1c58b4e1e8e617c09b6 /Userland/Libraries/LibGL | |
parent | f601f12801b878568cf1c8e123f76fca0b43c9c3 (diff) | |
download | serenity-6b11a5688dd2514ed9166fef06b4e7a9e0350c79.zip |
LibGL: Implement glVertex3fv
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/GLVert.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
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); |