From 41a6f1b02edf7f4cd6f0ace8f9bfd5a5779493ba Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:29:07 +0100 Subject: [PATCH] GetActiveFramebuffer added --- Raylib-cs/interop/Rlgl.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Raylib-cs/interop/Rlgl.cs b/Raylib-cs/interop/Rlgl.cs index 39789b7..454272c 100644 --- a/Raylib-cs/interop/Rlgl.cs +++ b/Raylib-cs/interop/Rlgl.cs @@ -328,6 +328,10 @@ public static unsafe partial class Rlgl [DllImport(NativeLibName, EntryPoint = "rlDisableFramebuffer", CallingConvention = CallingConvention.Cdecl)] public static extern void DisableFramebuffer(); + /// Get the currently active render texture (fbo), 0 for default framebuffer + [DllImport(NativeLibName, EntryPoint = "rlGetActiveFramebuffer", CallingConvention = CallingConvention.Cdecl)] + public static extern uint GetActiveFramebuffer(); + /// Blit active framebuffer to main framebuffer [DllImport(NativeLibName, EntryPoint = "rlBlitFramebuffer", CallingConvention = CallingConvention.Cdecl)] public static extern void BlitFramebuffer();