<!--
{
  "documentType" : "article",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/cvopenglestexture-q2s",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "CVOpenGLESTexture"
}
-->

# CVOpenGLESTexture

A texture-based image buffer that supplies source image data to OpenGL ES.

## Discussion

Core Video OpenGL ES textures are texture-based image buffers the system uses to supply source image data to OpenGL.

## Topics

### Inspecting Textures

The functions in this section operate on Core Video texture-based image buffers derived from the `CVOpenGLESTextureRef` type.

[`func CVOpenGLESTextureGetTarget(CVOpenGLESTexture) -> GLenum`](/documentation/CoreVideo/CVOpenGLESTextureGetTarget(_:))

Returns the texture target for a `CVOpenGLESTextureRef`.

[`func CVOpenGLESTextureGetName(CVOpenGLESTexture) -> GLuint`](/documentation/CoreVideo/CVOpenGLESTextureGetName(_:))

Returns the texture target name for a `CVOpenGLESTextureRef`.

[`func CVOpenGLESTextureGetCleanTexCoords(CVOpenGLESTexture, UnsafeMutablePointer<GLfloat>, UnsafeMutablePointer<GLfloat>, UnsafeMutablePointer<GLfloat>, UnsafeMutablePointer<GLfloat>)`](/documentation/CoreVideo/CVOpenGLESTextureGetCleanTexCoords(_:_:_:_:_:))

Returns convenient normalized texture coordinates for the part of the image that should be displayed.

[`func CVOpenGLESTextureIsFlipped(CVOpenGLESTexture) -> Bool`](/documentation/CoreVideo/CVOpenGLESTextureIsFlipped(_:))

Returns whether the image is flipped vertically or not.

[`func CVOpenGLESTextureGetTypeID() -> CFTypeID`](/documentation/CoreVideo/CVOpenGLESTextureGetTypeID())

Returns the Core Foundation type identifier for a Core Video texture-based image buffer.

### Data Types

[`typealias CVOpenGLESTexture`](/documentation/CoreVideo/CVOpenGLESTexture)

A reference to a Core Video texture-based image buffer.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)