Files
RedScarfEngine/graphics/rse_graphics.hpp
T
Piotr Krygier c4734e99c2 Add basic functionality to draw instances
Allows creation of instances of meshes and drawing all of them with
single draw call. Instances can have their own transformation data
(location, rotation and scale).
2023-03-31 16:31:47 +02:00

32 lines
757 B
C++

#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.
* This has to been run AFTER all scene objects have been already created.
*
* @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