Made simple render system
This commit is contained in:
29
simple_render_system.hpp
Normal file
29
simple_render_system.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "cve_pipeline.hpp"
|
||||
#include "cve_device.hpp"
|
||||
#include "cve_game_object.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace cve {
|
||||
class SimpleRenderSystem {
|
||||
public:
|
||||
|
||||
SimpleRenderSystem(CveDevice &device, VkRenderPass renderPass);
|
||||
~SimpleRenderSystem();
|
||||
|
||||
SimpleRenderSystem(const SimpleRenderSystem &) = delete;
|
||||
SimpleRenderSystem &operator=(const SimpleRenderSystem &) = delete;
|
||||
void renderGameObjects(VkCommandBuffer commandBuffer, std::vector<CveGameObject>& gameObjects);
|
||||
|
||||
private:
|
||||
void createPipelineLayout();
|
||||
void createPipeline(VkRenderPass renderPass);
|
||||
|
||||
CveDevice& cveDevice;
|
||||
std::unique_ptr<CvePipeline> cvePipeline;
|
||||
VkPipelineLayout pipelineLayout;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user