Documentation de Gambas - /comp/gb.opengl.glsl/gl/istexture

/comp/gb.opengl.glsl/gl/istexture

# Gl.IsTexture (gb.opengl)

Static Function IsTexture ( Texture As Integer ) As Boolean

Determine if a name corresponds to a texture.

### Parameters

texture

  Specifies a value that may be the name of a texture.

### Description

Gl.IsTexture 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, Gl.IsTexture returns Gl.FALSE.

A name returned by Gl.GenTextures, but not yet associated with a texture by calling Gl.BindTexture, is not the name of a texture.

### See also

Gl.BindTexture,

- Gl.CopyTexImage1D,

- Gl.CopyTexImage2D,

- Gl.DeleteTextures,

Gl.GenTextures,

- Gl.Get,

Gl.GetTexParameter, Gl.TexImage1D, Gl.TexImage2D, Gl.TexImage3D, Gl.TexParameter

See original documentation on OpenGL website