diff options
author | Jesse Buhagiar <jooster669@gmail.com> | 2021-08-13 21:06:02 +1000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-08-13 16:54:37 +0430 |
commit | 90e6b9d453560f044e6c5dcbea20a0c7f8398437 (patch) | |
tree | d97a263c0dddfb527a23b2302a9f1bda36b9a995 /Userland/Libraries/LibGL | |
parent | 296452a9818e5ce413332338a9c243479c0b33ed (diff) | |
download | serenity-90e6b9d453560f044e6c5dcbea20a0c7f8398437.zip |
LibGL: Implement `glColor3fv`
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/GLColor.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 5215b6ad71..8d199d9001 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -243,6 +243,7 @@ GLAPI void glClear(GLbitfield mask); GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); GLAPI void glClearDepth(GLdouble depth); GLAPI void glColor3f(GLfloat r, GLfloat g, GLfloat b); +GLAPI void glColor3fv(const GLfloat* v); GLAPI void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a); GLAPI void glColor4fv(const GLfloat* v); GLAPI void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a); diff --git a/Userland/Libraries/LibGL/GLColor.cpp b/Userland/Libraries/LibGL/GLColor.cpp index bf5826ec72..f440f4dc6a 100644 --- a/Userland/Libraries/LibGL/GLColor.cpp +++ b/Userland/Libraries/LibGL/GLColor.cpp @@ -14,6 +14,10 @@ void glColor3f(GLfloat r, GLfloat g, GLfloat b) { g_gl_context->gl_color(r, g, b, 1.0); } +void glColor3fv(const GLfloat* v) +{ + g_gl_context->gl_color(v[0], v[1], v[2], 1.0); +} void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a) { |