Rewrite done - broken

This commit is contained in:
Ben Kyd
2019-10-18 11:59:53 +01:00
parent f59f6e9323
commit 5e13de6a3e
9 changed files with 222 additions and 81 deletions

View File

@@ -85,6 +85,9 @@ void Game::Setup(int w, int h) {
BlockDictionary.Build();
m_world = std::make_unique<World>();
Texture texture;
m_world->TextureID = texture.LoadTextures(BlockDictionary.Textures);
m_world->Chunks.push_back(std::make_shared<Chunk>(0, 0));
m_world->Chunks.push_back(std::make_shared<Chunk>(1, 1));
@@ -93,9 +96,6 @@ void Game::Setup(int w, int h) {
m_world->Shaders["Basic"] = std::make_shared<Shader>();
m_world->Shaders["Basic"]->Load(GameConfig.ResourceBase + "shaders/simple");
m_world->Shaders["Basic"]->Link();
Texture texture;
m_world->TextureID = texture.LoadTextures(BlockDictionary.Textures);
}