Move Drawable draw call recording logic out of renderer

This commit is contained in:
2021-08-01 00:37:11 +02:00
parent 8d370c9860
commit 87dad42c79
14 changed files with 251 additions and 70 deletions

View File

@@ -10,6 +10,7 @@
#include "Scene/Geometry.hpp"
#include "Scene/Material.hpp"
#include "Scene/Vertex.hpp"
#include "Scene/SimpleDrawable.hpp"
#include "Input/InputManager.hpp"
#include "Host/GraphicsAppManager.hpp"
#include "Math/Math.hpp"
@@ -33,7 +34,7 @@ class CubesExampleAppImpl final : public CubesExampleApp
openVulkanoCpp::FreeCamCameraController camController;
Material mat;
Shader shader;
std::vector<Drawable> drawablesPool;
std::vector<SimpleDrawable> drawablesPool;
std::vector<Node> nodesPool;
InputAction* actionForward;