summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-08-13 14:35:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 12:49:29 +0200
commitb9261ade522b1820fa81391aee75217f6ea0587b (patch)
tree85a2dd682788bd8a2d1c07b697907d5fea435639 /Userland
parentf7764026323b3cd17374b4a34fe740be0c0e733e (diff)
downloadserenity-b9261ade522b1820fa81391aee75217f6ea0587b.zip
LibGL: Implement glTexCoord4fv
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h1
-rw-r--r--Userland/Libraries/LibGL/GLVert.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index d31959da45..0f57196141 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -349,6 +349,7 @@ GLAPI void glReadBuffer(GLenum mode);
GLAPI void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
GLAPI void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* data);
GLAPI void glTexCoord2f(GLfloat s, GLfloat t);
+GLAPI void glTexCoord4fv(const GLfloat* v);
GLAPI void glTexParameteri(GLenum target, GLenum pname, GLint param);
GLAPI void glTexParameterf(GLenum target, GLenum pname, GLfloat param);
GLAPI void glBindTexture(GLenum target, GLuint texture);
diff --git a/Userland/Libraries/LibGL/GLVert.cpp b/Userland/Libraries/LibGL/GLVert.cpp
index 060b2b059a..81567e6132 100644
--- a/Userland/Libraries/LibGL/GLVert.cpp
+++ b/Userland/Libraries/LibGL/GLVert.cpp
@@ -145,6 +145,11 @@ void glTexCoord2f(GLfloat s, GLfloat t)
g_gl_context->gl_tex_coord(s, t, 0.0f, 0.0f);
}
+void glTexCoord4fv(const GLfloat* v)
+{
+ g_gl_context->gl_tex_coord(v[0], v[1], v[2], v[3]);
+}
+
void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_rotate(angle, x, y, z);