Contents

CVOpenGLTextureIsFlipped(_:)

Determines whether an OpenGL texture is flipped vertically.

Declaration

func CVOpenGLTextureIsFlipped(_ image: CVOpenGLTexture) -> Bool

Parameters

  • image:

    The Core Video OpenGL texture whose vertical orientation you want to determine.

Return Value

Returns true if (0,0) in the texture is in the upper-left corner, and false if (0,0) is in the lower-left corner.

Discussion

Quartz assumes a lower-left origin.

See Also

Inspecting Textures