GLAPI/glIsTexture: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
m Bot: Adjusting API page category.
 
(5 intermediate revisions by one other user not shown)
Line 8: Line 8:
== Function Definition ==
== Function Definition ==


   GLboolean '''glIsTexture'''(GLuint ''texture'');
   GLboolean '''glIsTexture'''(GLuint {{param|texture}});


; texture
; texture
Line 15: Line 15:
== Description ==
== Description ==


'''glIsTexture''' returns {{code|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 {{code|GL_FALSE}}.
'''glIsTexture''' returns {{enum|GL_TRUE}} if {{param|texture}} is currently the name of a texture. If {{param|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 {{enum|GL_FALSE}}.


A name returned by [[GLAPI/glGenTextures|glGenTextures]], but not yet associated with a texture by calling [[GLAPI/glBindTexture|glBindTexture]], is not the name of a texture.
A name returned by {{apifunc|glGenTextures}}, but not yet associated with a texture by calling {{apifunc|glBindTexture}}, is not the name of a texture.


== See Also ==
== See Also ==


[[GLAPI/glBindTexture|glBindTexture]], [[GLAPI/glCopyTexImage1D|glCopyTexImage1D]], [[GLAPI/glCopyTexImage2D|glCopyTexImage2D]], [[GLAPI/glDeleteTextures|glDeleteTextures]], [[GLAPI/glGenTextures|glGenTextures]], [[GLAPI/glGet|glGet]], [[GLAPI/glGetTexParameter|glGetTexParameter]], [[GLAPI/glTexImage1D|glTexImage1D]], [[GLAPI/glTexImage2D|glTexImage2D]], [[GLAPI/glTexImage3D|glTexImage3D]], [[GLAPI/glTexParameter|glTexParameter]]
{{apifunc|glBindTexture}}, {{apifunc|glDeleteTextures}}, {{apifunc|glGenTextures}}


== Copyright ==
== Copyright ==


Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see [http://oss.sgi.com/projects/FreeB/ http://oss.sgi.com/projects/FreeB/].
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see [https://khronos.org/registry/OpenGL-Refpages/LICENSES/LicenseRef-FreeB.txt LicenseRef-FreeB].


[[Category:API Reference 4|IsTexture]]
[[Category:Core API Reference|IsTexture]]
[[Category:GL 4 API Texturing|IsTexture]]
[[Category:Core API Ref Texturing|IsTexture]]

Latest revision as of 22:13, 5 February 2021

glIsTexture
Core in version 4.6
Core since version 1.1

glIsTexture: determine if a name corresponds to a texture

Function Definition

 GLboolean glIsTexture(GLuint texture​);
texture
Specifies a value that may be the name of a texture.

Description

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.

See Also

glBindTexture, glDeleteTextures, glGenTextures

Copyright

Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see LicenseRef-FreeB.