adding multiple blocs

This commit is contained in:
2025-05-22 12:11:47 +02:00
parent aa77ca018a
commit e9708f7e2e
7 changed files with 66 additions and 33 deletions

View File

@@ -5,6 +5,16 @@
#include <ScopGraphics.h>
enum class BlockType : std::uint32_t
{
Air = 0,
Dirt,
Stone,
EndEnum
};
constexpr std::size_t BlocksCount = static_cast<std::size_t>(BlockType::EndEnum);
static const std::vector<Scop::Vertex> BLOCK_MESH = {
//Front face
Scop::Vertex{ Scop::Vec4f{ 0.0f, 0.0f, 1.0f, 1.0f }, Scop::Vec4f{ 0.0f, 0.0f, 1.0f, 1.0f }, Scop::Vec2f{ 0.0f, 0.0f } },