[WIP] Refactor project
There are many problems with the way the current version is provided and maintained. This commit or series of commits will fix this.
This commit is contained in:
1 parent
f5ab5f3f27
commit
173a82b9d1
63 files changed
+2663
-2239
No files matched your search
@@ -1,28 +1,31 @@
|
||||
#ifndef RSE_GRAPHICS_H
|
||||
#define RSE_GRAPHICS_H
|
||||
|
||||
#include "utilities/rse_commons.h"
|
||||
#include "utilities/commons.h"
|
||||
|
||||
struct rse_graphics_context_t;
|
||||
|
||||
/**
|
||||
* @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(void);
|
||||
rse_err_t rse_graphics_init(struct rse_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(void);
|
||||
rse_err_t rse_graphics_run(struct rse_graphics_context_t* context);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Custom function for testing engine. Remove it whe releasing
|
||||
* @brief Custom function for testing engine. TODO: Remove it whe releasing
|
||||
*
|
||||
*/
|
||||
void rse_graphics_test_function(void);
|
||||
void rse_graphics_test_function(struct rse_graphics_context_t* context);
|
||||
|
||||
#endif /* RSE_GRAPHICS_H */
|
||||
Reference in new issue
Block a user