summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GL/gl.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-05-30 00:15:51 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-30 00:32:37 +0100
commit755393e684268b8ee1c1f72b6a705e99827836b5 (patch)
tree6e2f552d4908db497931ef855ffc31a0f5fffe7a /Userland/Libraries/LibGL/GL/gl.h
parentfde0045ebe7ac5aa1698870002ae58edac3c4f85 (diff)
downloadserenity-755393e684268b8ee1c1f72b6a705e99827836b5.zip
LibGL: Implement glBindTexture()
Textures are now initialized with a nullptr upon generation. They are only actually created once they are bound to a target. Currently only the GL_TEXTURE_2D target is supported. The software rasterizer now allows rendering with or without a bound TEXTURE_2D.
Diffstat (limited to 'Userland/Libraries/LibGL/GL/gl.h')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index c7fd7856c9..3cb027d44a 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
+ * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -257,6 +258,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 glBindTexture(GLenum target, GLuint texture);
#ifdef __cplusplus
}