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

@ -34,13 +34,18 @@ extern "C" {
/**
* @brief Renders a single frame.
*
* @note Separate two-pass frame rendering is currently not supported by the C API as it is rarely used
* and also depends on the loaded preset.
*
* @param instance The projectM instance handle.
*/
PROJECTM_EXPORT void projectm_opengl_render_frame(projectm_handle instance);
/**
* @brief Renders a single frame into a user-defined framebuffer object.
*
* @param instance The projectM instance handle.
* @param framebuffer_object_id The OpenGL FBO ID to render to.
*/
PROJECTM_EXPORT void projectm_opengl_render_frame_fbo(projectm_handle instance, uint32_t framebuffer_object_id);
#ifdef __cplusplus
} // extern "C"
#endif