Files
RedScarfEngine/graphics/rse_graphics.h
T
Piotr Krygier c6825caa69 Implement event handler
Added event handler implementation.
Moved enginge specific implementation outside graphics module

Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
2026-03-04 11:04:53 +01:00

35 lines
968 B
C

#ifndef RSE_GRAPHICS_H
#define RSE_GRAPHICS_H
#include "src/graphics_context.h"
#include "utilities/commons.h"
/**
* @brief Initializes graphics backend. This has to be called before any new mesh, texture or any other object is
* added
*
* @param context Graphics context handle. Must be NULL!
* @return rse_err_t RSE_ERROR_NO_ERROR on success
*/
rse_err_t rse_graphics_init(struct graphics_context_t* context);
/**
* @brief Runs graphics engine. This has to be called after all objects are added to the scene
*
* @return rse_err_t RSE_ERROR_NO_ERROR on success
*/
rse_err_t rse_graphics_run(struct graphics_context_t* context);
rse_err_t rse_graphics_main_loop(struct graphics_context_t* context);
/**
* @brief Custom function for testing engine. TODO: Remove it whe releasing
*
*/
rse_err_t rse_graphics_test_function(struct graphics_context_t* context);
void rse_graphics_deinit(struct graphics_context_t* context);
#endif /* RSE_GRAPHICS_H */