<!--
{
  "availability" : [
    "iOS: 5.0.0 - 12.0.0",
    "iPadOS: 5.0.0 - 12.0.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVOpenGLESTextureGetCleanTexCoords(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVOpenGLESTextureGetCleanTexCoords"
  },
  "title" : "CVOpenGLESTextureGetCleanTexCoords(_:_:_:_:_:)"
}
-->

# CVOpenGLESTextureGetCleanTexCoords(_:_:_:_:_:)

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

```
func CVOpenGLESTextureGetCleanTexCoords(_ image: CVOpenGLESTexture, _ lowerLeft: UnsafeMutablePointer<GLfloat>, _ lowerRight: UnsafeMutablePointer<GLfloat>, _ upperRight: UnsafeMutablePointer<GLfloat>, _ upperLeft: UnsafeMutablePointer<GLfloat>)
```

## Parameters

`image`

The OpenGLES texture-based image buffer whose normalized texture coordinates are desired.

`lowerLeft`

An array of two `GLfloat`s where the `s` and `t` normalized texture coordinates of the lower left corner of the image will be stored.

`lowerRight`

An array of two `GLfloat`s where the `s` and `t` normalized texture coordinates of the lower right corner of the image will be stored.

`upperRight`

An array of two `GLfloat`s where the `s` and `t` normalized texture coordinates of the upper right corner of the image will be stored.

`upperLeft`

An array of two `GLfloat`s where the `s` and `t` normalized texture coordinates of the upper left corner of the image will be stored.

## Discussion

This function automatically takes into account whether or not the texture is flipped.

---

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)