Add API function to enable rendering to custom FBO IDs

This commit is contained in:
Kai Blaschke
2024-06-08 17:22:11 +02:00
parent b0cdf4de7b
commit bd2b1ba9f4
2 changed files with 16 additions and 3 deletions

View File

@ -6,6 +6,8 @@
#include <cstring>
#include <sstream>
#include <projectM-4/render_opengl.h>
namespace libprojectM {
@ -171,6 +173,12 @@ void projectm_opengl_render_frame(projectm_handle instance)
projectMInstance->RenderFrame();
}
void projectm_opengl_render_frame_fbo(projectm_handle instance, uint32_t framebuffer_object_id)
{
auto projectMInstance = handle_to_instance(instance);
projectMInstance->RenderFrame(framebuffer_object_id);
}
void projectm_set_beat_sensitivity(projectm_handle instance, float sensitivity)
{
auto projectMInstance = handle_to_instance(instance);