summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-20 17:21:29 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-20 17:21:29 +0200
commitc62e2cd49649109f0135e56ee8add0dab2254d01 (patch)
tree7e6240186a3801daf0189d1883081b93b5f1eb5c /src/RendererWorld.hpp
parent2017-08-19 (diff)
downloadAltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.tar
AltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.tar.gz
AltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.tar.bz2
AltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.tar.lz
AltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.tar.xz
AltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.tar.zst
AltCraft-c62e2cd49649109f0135e56ee8add0dab2254d01.zip
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/RendererWorld.hpp b/src/RendererWorld.hpp
index e7bcdf0..5bc575c 100644
--- a/src/RendererWorld.hpp
+++ b/src/RendererWorld.hpp
@@ -2,12 +2,13 @@
#include "RendererSection.hpp"
#include "RendererEntity.hpp"
+#include "RendererSky.hpp"
#include "GameState.hpp"
#include "Shader.hpp"
#include <glm/gtc/type_ptr.hpp>
-class RendererWorld: public Renderer {
+class RendererWorld {
//General
std::shared_ptr<GameState> gs;
EventListener listener;
@@ -27,14 +28,18 @@ class RendererWorld: public Renderer {
//Entities
Shader *entityShader;
std::vector<RendererEntity> entities;
+ //Sky
+ Texture *skyTexture;
+ Shader *skyShader;
+ RendererSky rendererSky;
public:
RendererWorld(std::shared_ptr<GameState> ptr);
~RendererWorld();
- void Render(RenderState& renderState) override;
- void PrepareResources() override;
- void PrepareRender() override;
- bool IsNeedResourcesPrepare() override;
+ void Render(RenderState& renderState);
+ void PrepareResources();
+ void PrepareRender();
+ bool IsNeedResourcesPrepare();
double MaxRenderingDistance;