Contents

CVOpenGLTextureGetTarget(_:)

Returns the texture target (for example, GL_TEXTURE_2D) of an OpenGL texture.

Declaration

func CVOpenGLTextureGetTarget(_ image: CVOpenGLTexture) -> GLenum

Parameters

  • image:

    The Core Video OpenGL texture whose target you want to obtain.

Return Value

The OpenGL texture target.

Discussion

See the OpenGL specification for more information about texture targets.

See Also

Inspecting Textures