diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-17 06:59:16 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-17 06:59:16 +0100 |
commit | 513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc (patch) | |
tree | a54c7a24e93b96c8ba8fce248f4fcc60a44924d8 /src/RendererEntity.hpp | |
parent | Changed section rendering to Gal (diff) | |
download | AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.tar AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.tar.gz AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.tar.bz2 AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.tar.lz AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.tar.xz AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.tar.zst AltCraft-513fe5ebe3f59aa8d85d9517db9fe0bfa531d3dc.zip |
Diffstat (limited to 'src/RendererEntity.hpp')
-rw-r--r-- | src/RendererEntity.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/RendererEntity.hpp b/src/RendererEntity.hpp index 346f9fb..b9097bd 100644 --- a/src/RendererEntity.hpp +++ b/src/RendererEntity.hpp @@ -1,17 +1,14 @@ #pragma once -#include <GL/glew.h> +#include "Gal.hpp" -class RenderState; class World; class RendererEntity { unsigned int entityId; + std::shared_ptr<Gal::Pipeline> pipeline; public: RendererEntity(unsigned int id); - ~RendererEntity(); - void Render(RenderState& renderState, const World *world); - - static GLuint GetVao(); + void Render(std::shared_ptr<Gal::Pipeline> pipeline, const World *world); }; |