Actually rendering faces in a cube (no textures yet, im lazy)

This commit is contained in:
Ben
2019-10-06 22:44:29 +01:00
parent 33735ef2e8
commit feb895a5d8
8 changed files with 90 additions and 41 deletions

12
src/world/block.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "block.hpp"
std::vector<std::shared_ptr> BlockAtlas() {
static bool Constructed = false;
if (!Constructed) {
}
}

17
src/world/block.hpp Normal file
View File

@@ -0,0 +1,17 @@
#ifndef MINECRAFT_WORLD_BLOCK_H_
#define MINECRAFT_WORLD_BLOCK_H_
#include "../common.hpp"
struct Block {
std::string Name;
int ID;
std::vector<std::pair<int, std::string>> Textures;
};
std::vector<std::shared_ptr> BlockAtlas();
#endif