mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57: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
|
@ -102,6 +102,7 @@ public:
|
|||
virtual void gl_tex_coord(GLfloat s, GLfloat t, GLfloat r, GLfloat q) override;
|
||||
virtual void gl_tex_env(GLenum target, GLenum pname, GLfloat param) override;
|
||||
virtual void gl_bind_texture(GLenum target, GLuint texture) override;
|
||||
virtual GLboolean gl_is_texture(GLuint texture) override;
|
||||
virtual void gl_active_texture(GLenum texture) override;
|
||||
virtual void gl_depth_mask(GLboolean flag) override;
|
||||
virtual void gl_enable_client_state(GLenum cap) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue