---
title: "CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)"
framework: Core Video
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: "corevideo/cvopengltexturegetcleantexcoords(_:_:_:_:_:)"
---

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

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

## Declaration

```swift
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

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

## See Also

### Related Documentation

- [Core Video Programming Guide](apple-archive/documentation/GraphicsImaging/Conceptual/CoreVideo/CVProg_Intro.md)

### Inspecting Textures

- [CVOpenGLTextureGetName(_:)](corevideo/cvopengltexturegetname(_:).md)
- [CVOpenGLTextureGetTarget(_:)](corevideo/cvopengltexturegettarget(_:).md)
- [CVOpenGLTextureIsFlipped(_:)](corevideo/cvopengltextureisflipped(_:).md)
- [CVOpenGLTextureGetTypeID()](corevideo/cvopengltexturegettypeid().md)
