Rewrite done - broken
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user