pub unsafe extern "C-unwind" fn CVOpenGLBufferCreate(
allocator: Option<&CFAllocator>,
width: usize,
height: usize,
attributes: Option<&CFDictionary>,
buffer_out: NonNull<*mut CVOpenGLBuffer>,
) -> CVReturn๐Deprecated: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
Available on crate features
CVBuffer and CVImageBuffer and CVOpenGLBuffer and CVReturn only.Expand description
Create a new CVOpenGLBuffer that may be used for OpenGL rendering purposes
Parameter width: The width of the buffer in pixels
Parameter height: The height of the buffer in pixels
Parameter attributes: A CFDictionaryRef containing other desired attributes of the buffer (texture target, internal format, max mipmap level, etc.).
May be NULL. Defaults are GL_TEXTURE_RECTANGLE_EXT, GL_RGBA, and 0 for kCVOpenGLBufferTarget, kCVOpenGLBufferInternalFormat and kCVOpenGLBufferMaximumMipmapLevel,
respectively.
Parameter bufferOut: The newly created buffer will be placed here.
Returns: kCVReturnSuccess if the attachment succeeded
ยงSafety
attributesgenerics must be of the correct type.buffer_outmust be a valid pointer.