<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVOpenGLTextureGetCleanTexCoords"
  },
  "title" : "CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)"
}
-->

# CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)

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

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

## Parameters

`image`

The Core Video OpenGL texture whose clean tex coordinates you want to obtain.

`lowerLeft`

On output, the `GLFloat` array holds the *s* and *t* texture coordinates of the lower-left corner of the image.

`lowerRight`

On output, the `GLFloat` array holds the *s* and *t* texture coordinates of the lower-right corner of the image.

`upperRight`

On output, the `GLFloat` array holds the *s* and *t* texture coordinates of the upper-right corner of the image.

`upperLeft`

On output, the `GLFloat` array holds the *s* and *t* texture coordinates of the upper-left corner of the image.

## Discussion

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

## See Also

  [Core Video Programming Guide](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/CoreVideo/CVProg_Intro/CVProg_Intro.html#//apple_ref/doc/uid/TP40001536)



---

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)