mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
LibGL: Implement glIsTexture
Required by Xash3D for the r_showtextures command, where it shows every allocated texture on screen. Description of glIsTexture from the spec: "glIsTexture returns GL_TRUE if texture is currently the name of a texture. If texture is zero, or is a non-zero value that is not currently the name of a texture, or if an error occurs, glIsTexture returns GL_FALSE. A name returned by glGenTextures, but not yet associated with a texture by calling glBindTexture, is not the name of a texture." https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glIsTexture.xhtml
This commit is contained in:
parent
adfb0846d2
commit
1fc611877f
5 changed files with 22 additions and 0 deletions
|
@ -552,6 +552,7 @@ GLAPI void glTexParameterf(GLenum target, GLenum pname, GLfloat param);
|
|||
GLAPI void glTexEnvf(GLenum target, GLenum pname, GLfloat param);
|
||||
GLAPI void glTexEnvi(GLenum target, GLenum pname, GLint param);
|
||||
GLAPI void glBindTexture(GLenum target, GLuint texture);
|
||||
GLAPI GLboolean glIsTexture(GLuint texture);
|
||||
GLAPI void glActiveTexture(GLenum texture);
|
||||
GLAPI void glGetBooleanv(GLenum pname, GLboolean* data);
|
||||
GLAPI void glGetDoublev(GLenum pname, GLdouble* params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue