MCLCaptureMethod
enum MCLCaptureMethod {}
How screen captures are performed.
-
Re-draw the given view (this is the default)
Declaration
Objective-C
kMCLCaptureMethodView = MCL_CAPTURE_METHOD_VIEW
Swift
case view = 0
-
Capture via OpenGL ES 2. Setting this requires also setting a texture to capture from using the native function
void mcl_set_capture_texture(void *texture_pointer)
with the GLint texture name of a texture that holds the data to be captured.You have to call
-[Megacool notifyRenderComplete]
at some point during the graphics pipeline to make this work.Declaration
Objective-C
kMCLCaptureMethodOpenGLES2 = MCL_CAPTURE_METHOD_OPENGLES2
Swift
case openGLES2 = 1
-
Capture via OpenGL ES 3.
You have to call
-[Megacool notifyRenderComplete]
at some point during the graphics pipeline to make this work.Declaration
Objective-C
kMCLCaptureMethodOpenGLES3 = MCL_CAPTURE_METHOD_OPENGLES3
Swift
case openGLES3 = 2
-
Capture via Metal. Setting this requires also setting a texture to capture from using the native function
void mcl_set_capture_texture(void *texture_pointer)
with theid<MTLTexture>
that holds the data to be captured.You have to call
-[Megacool notifyRenderComplete]
at some point during the graphics pipeline to make this work.Declaration
Objective-C
kMCLCaptureMethodMetal = MCL_CAPTURE_METHOD_METAL
Swift
case metal = 3