CVOpenGLBufferCreate(_:_:_:_:_:)
Creates a new Core Video OpenGL buffer that can be used for OpenGL rendering purposes
Declaration
func CVOpenGLBufferCreate(_ allocator: CFAllocator?, _ width: Int, _ height: Int, _ attributes: CFDictionary?, _ bufferOut: UnsafeMutablePointer<CVOpenGLBuffer?>) -> CVReturnParameters
- allocator:
The allocator to use to create the Core Video OpenGL buffer. Pass
NULLto specify the default allocator. - width:
The width of the buffer in pixels.
- height:
The height of the buffer in pixels.
- attributes:
A Core Foundation dictionary containing other desired attributes of the buffer (texture target, internal format, max mipmap level, etc.). May be
NULL. The following attribute values are assumed if you do not explicitly define them:kCVOpenGLBufferTarget=GL_TEXTURE_RECTANGLE_EXTkCVOpenGLBufferInternalFormat=GL_RGBAkCVOpenGLBufferMaximumMipmapLevel= 0
- bufferOut:
On output,
bufferOutpoints to the newly created OpenGL buffer.
Return Value
A Core Video result code. See Core Video Constants for possible values.