Refactor project

Crealned up some TODOs, FIXMEs etc. Added better error handling. Looks
better, feels better.
This commit is contained in:
Piotr Krygier committed 2023-10-10 10:46:12 +02:00
1 parent bd4dd74881
commit 42dc4d6fcd
29 files changed
+750 -645

No files matched your search

+7 -4
View File
@@ -17,23 +17,26 @@
/* Vulkan header MUST be included before glfw */
#include <GLFW/glfw3.h>
#include "rse_window_errors.h"
#include "utilities/rse_commons.h"
/**
* @brief Initialize window
*
* @return uint16_t WINDOW_SUCCESS on success. Possible errors:
* @return rse_err_t WINDOW_SUCCESS on success. Possible errors:
* WINDOW_VULKAN_NOT_LOADED
* WINDOW_WINDOW_NOT_CREATED
*
*/
uint16_t window_init();
rse_err_t window_init();
/**
* @brief Main window loop
*
* @param vulkan_state
* @return uint16_t WINDOW_SUCCESS or error code
* @return rse_err_t WINDOW_SUCCESS or error code
*/
uint16_t window_loop();
rse_err_t window_loop();
/**
* @brief Closes window and terminates GLFW