summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLContext.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-01-15 18:08:14 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-19 19:57:49 +0100
commit044582b0ce9c9ad60c298d27a4838b5ddd006b7c (patch)
tree307b6597df25cf5cd8c3621a20028623db3abf1c /Userland/Libraries/LibGL/GLContext.h
parent716b53e90fe58836d6afb619dc5e3f7e136a806f (diff)
downloadserenity-044582b0ce9c9ad60c298d27a4838b5ddd006b7c.zip
LibGL: Add stubs for multitexturing and announce GL_ARB_multitexture
This makes glquake recognize multitexture support and choose the multitexture rendering path.
Diffstat (limited to 'Userland/Libraries/LibGL/GLContext.h')
-rw-r--r--Userland/Libraries/LibGL/GLContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h
index 1eecd49830..d4949d1123 100644
--- a/Userland/Libraries/LibGL/GLContext.h
+++ b/Userland/Libraries/LibGL/GLContext.h
@@ -69,6 +69,7 @@ public:
virtual void gl_tex_sub_image_2d(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* data) = 0;
virtual void gl_tex_parameter(GLenum target, GLenum pname, GLfloat param) = 0;
virtual void gl_tex_coord(GLfloat s, GLfloat t, GLfloat r, GLfloat q) = 0;
+ virtual void gl_multi_tex_coord(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) = 0;
virtual void gl_tex_env(GLenum target, GLenum pname, GLfloat param) = 0;
virtual void gl_bind_texture(GLenum target, GLuint texture) = 0;
virtual GLboolean gl_is_texture(GLuint texture) = 0;
@@ -76,6 +77,7 @@ public:
virtual void gl_depth_mask(GLboolean flag) = 0;
virtual void gl_enable_client_state(GLenum cap) = 0;
virtual void gl_disable_client_state(GLenum cap) = 0;
+ virtual void gl_client_active_texture(GLenum target) = 0;
virtual void gl_vertex_pointer(GLint size, GLenum type, GLsizei stride, const void* pointer) = 0;
virtual void gl_color_pointer(GLint size, GLenum type, GLsizei stride, const void* pointer) = 0;
virtual void gl_tex_coord_pointer(GLint size, GLenum type, GLsizei stride, const void* pointer) = 0;