File tree 1 file changed +24
-0
lines changed 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1018,6 +1018,30 @@ function SDL_GL_BindTexture(texture: PSDL_Texture; texw: pcfloat; texh: pcfloat)
1018
1018
*}
1019
1019
function SDL_GL_UnbindTexture (texture: PSDL_Texture): cint32 cdecl; external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GL_UnbindTexture' { $ENDIF} { $ENDIF} ;
1020
1020
1021
+ { **
1022
+ * Get the CAMetalLayer associated with the given Metal renderer.
1023
+ *
1024
+ * This function returns a raw Pointer, so SDL doesn't have to include Metal's headers,
1025
+ * but it can be safely cast to a pointer to `CAMetalLayer`.
1026
+ *
1027
+ *}
1028
+ function SDL_RenderGetMetalLayer (renderer: PSDL_Renderer): Pointer; cdecl;
1029
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_RenderGetMetalLayer' { $ENDIF} { $ENDIF} ;
1030
+
1031
+ { **
1032
+ * Get the Metal command encoder for the current frame
1033
+ *
1034
+ * This function returns a raw Pointer, so SDL doesn't have to include Metal's headers,
1035
+ * but it can be safely cast to an `id<MTLRenderCommandEncoder>`.
1036
+ *
1037
+ * Note that as of SDL 2.0.18, this will return NULL if Metal refuses to give
1038
+ * SDL a drawable to render to, which might happen if the window is
1039
+ * hidden/minimized/offscreen. This doesn't apply to command encoders for
1040
+ * render targets, just the window's backbacker. Check your return values!
1041
+ *}
1042
+ function SDL_RenderGetMetalCommandEncoder (renderer: PSDL_Renderer): Pointer; cdecl;
1043
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_RenderGetMetalCommandEncoder' { $ENDIF} { $ENDIF} ;
1044
+
1021
1045
{ **
1022
1046
* Toggle VSync of the given renderer.
1023
1047
*}
You can’t perform that action at this time.
0 commit comments