CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)
Returns the texture coordinates for the part of the image that should be displayed.
Declaration
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
GLFloatarray holds the s and t texture coordinates of the lower-left corner of the image. - lowerRight:
On output, the
GLFloatarray holds the s and t texture coordinates of the lower-right corner of the image. - upperRight:
On output, the
GLFloatarray holds the s and t texture coordinates of the upper-right corner of the image. - upperLeft:
On output, the
GLFloatarray 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.