pub unsafe extern "C-unwind" fn CVOpenGLBufferAttach(
open_gl_buffer: &CVOpenGLBuffer,
cgl_context: CGLContextObj,
face: u32,
level: i32,
screen: i32,
) -> CVReturn๐Deprecated: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
Available on crate feature
CVBuffer and crate feature CVImageBuffer and crate feature CVOpenGLBuffer and crate feature CVReturn and crate feature objc2-open-gl and macOS only.Expand description
Parameter openGLBuffer: The buffer you wish to attach a GL context to
Parameter cglContext: The CGLContextObj you wish to attach
Parameter face: The target GL face enum (0 for non cube maps)
Parameter level: The mipmap level index you wish to attach to
Parameter screen: The virtual screen number you want to use
Returns: kCVReturnSuccess if the attachment succeeded
ยงSafety
cgl_context must be a valid pointer.