Ive done literally nothing and this build doesnt work but need to transfer for laptop tomorrow

This commit is contained in:
Ben
2019-10-14 22:30:12 +01:00
parent dc1b7ab83f
commit fdc87ba343
8 changed files with 175 additions and 67 deletions

View File

@@ -7,7 +7,7 @@
#include "renderer/texture.hpp"
#include "renderer/shader.hpp"
#include "renderer/camera.hpp"
#include "renderer/voxel.hpp"
#include "renderer/chunk.hpp"
#include "world/world.hpp"
#include "world/block.hpp"
@@ -84,15 +84,7 @@ void Game::Setup(int w, int h) {
m_world = std::make_unique<World>();
m_world->Voxels.push_back(std::make_shared<Voxel>(0, 0, 0));
m_world->Voxels.push_back(std::make_shared<Voxel>(1, 0, 0));
m_world->Voxels.push_back(std::make_shared<Voxel>(-1, 0, 0));
m_world->Voxels.push_back(std::make_shared<Voxel>(0, 0, 1));
m_world->Voxels.push_back(std::make_shared<Voxel>(0, 0, -1));
m_world->Voxels.push_back(std::make_shared<Voxel>(-1, 0, -1));
m_world->Voxels.push_back(std::make_shared<Voxel>(-1, 0, 1));
m_world->Voxels.push_back(std::make_shared<Voxel>(1, 0, 1));
m_world->Voxels.push_back(std::make_shared<Voxel>(1, 0, -1));
m_world->Chunks.push_back(std::make_shared<Chunk>());
m_world->Shaders["Basic"] = std::make_shared<Shader>();
m_world->Shaders["Basic"]->Load(GameConfig.ResourceBase + "shaders/simple");
@@ -151,7 +143,6 @@ void Game::Run() {
m_renderer = std::make_unique<Renderer>();
while (IsDisplayOpen) {
Input(&e);