mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-09 17:05:55 +00:00
Add API function to enable rendering to custom FBO IDs
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user