summaryrefslogtreecommitdiffstats
path: root/src/RendererSection.hpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-15 08:55:20 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-15 08:55:20 +0100
commit663821b00ca8440509e0bc6d5022c809c7fe1cff (patch)
treeca1492c89efccf193f1640b7195f4f8a5ced3a39 /src/RendererSection.hpp
parentAdded ScissorTest to Gal (diff)
downloadAltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.tar
AltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.tar.gz
AltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.tar.bz2
AltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.tar.lz
AltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.tar.xz
AltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.tar.zst
AltCraft-663821b00ca8440509e0bc6d5022c809c7fe1cff.zip
Diffstat (limited to '')
-rw-r--r--src/RendererSection.hpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/RendererSection.hpp b/src/RendererSection.hpp
index 3ea1fec..0a03f44 100644
--- a/src/RendererSection.hpp
+++ b/src/RendererSection.hpp
@@ -1,29 +1,26 @@
#pragma once
-#include <glm/mat4x4.hpp>
-#include <GL/glew.h>
-
#include "Vector.hpp"
+#include "Gal.hpp"
class RenderState;
class RendererSectionData;
class RendererSection {
- GLuint Vao = { 0 };
- GLuint Vbo = { 0 };
-
+ std::shared_ptr<Gal::PipelineInstance> pipelineInstance;
+ std::shared_ptr<Gal::Buffer> buffer;
size_t hash;
Vector sectionPos;
RendererSection(const RendererSection &other) = delete;
public:
- RendererSection(const RendererSectionData &data);
+ RendererSection(const RendererSectionData& data, std::shared_ptr<Gal::Pipeline> pipeline, std::shared_ptr<Gal::BufferBinding> bufferBinding);
RendererSection(RendererSection &&other);
~RendererSection();
- void Render(RenderState &renderState);
+ void Render();
Vector GetPosition();