feat: add basic towers rendering

This commit is contained in:
2021-09-26 18:19:00 +02:00
parent 2ece5bc9b5
commit fe7cfdec72
22 changed files with 230 additions and 58 deletions

View File

@@ -1,8 +1,8 @@
#pragma once
#include "game/World.h"
#include "render/loader/GLLoader.h"
#include "render/Renderer.h"
#include "render/VertexCache.h"
#include <glm/glm.hpp>
@@ -29,12 +29,16 @@ private:
float m_Zoom = 1;
float m_CamSensibility = 1;
bool m_TowerPlacePopupOpened = false;
VertexCache m_TowersCache;
public:
WorldRenderer(game::World* world, client::ClientGame* client);
~WorldRenderer();
void loadModels();
void addTower(game::TowerPtr tower);
void removeTower(game::TowerPtr tower);
void update();
void render();