Split vulkan_base into smaller units
Closes #30. This is a basic refactoring of the graphics module, so everything won't be in single file.
This commit is contained in:
1 parent
649e7f76fe
commit
6a09350902
32 files changed
+2354
-2002
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#ifndef RSE_GRAPHICS_HPP
|
||||
#define RSE_GRAPHICS_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include "src/vulkan_commons.hpp"
|
||||
|
||||
namespace rse::graphics
|
||||
{
|
||||
class RseGraphics {
|
||||
public:
|
||||
RseGraphics();
|
||||
RseGraphics& operator=(const RseGraphics&) = delete;
|
||||
RseGraphics(const RseGraphics&) = delete;
|
||||
|
||||
/**
|
||||
* @brief Initialize graphics module, runs main loop and deinits everything, when interrupted
|
||||
*
|
||||
* @return uint8_t 0 on success.
|
||||
*/
|
||||
uint8_t graphics_run(void);
|
||||
|
||||
private:
|
||||
/* Hold vulkan state. It is modified by function initializing and communicating with Vulkan API */
|
||||
vulkanbase::VulkanState vulkan_state;
|
||||
};
|
||||
|
||||
|
||||
} // namespace rse::graphics
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user