Actually rendering faces in a cube (no textures yet, im lazy)
This commit is contained in:
12
src/world/block.cpp
Normal file
12
src/world/block.cpp
Normal 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
17
src/world/block.hpp
Normal 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
|
||||
Reference in New Issue
Block a user