CMake build added. Basic OpenGL 3.3 Mesh Rendering

This commit is contained in:
2023-03-01 07:22:50 +01:00
parent 1215e7d8a5
commit 76c7e1808c
46 changed files with 960 additions and 912 deletions

34
src/MapBlock.h Normal file
View File

@@ -0,0 +1,34 @@
/*#ifndef MAPBLOCK
#define MAPBLOCK
#include "Base.h"
#include <math.h>
#include <cstdio>
class MapBlock
{
public:
int mapBlock[65536];
MapBlock();
// TODO; Make this function work with global coordinates and move it to BlockManager
void addNode(int id, int meta, int x, int y, int z);
};
class BlockManager
{
public:
MapBlock mapBlocks[16][16];
BlockManager();
int getNodeAt(int x, int y, int z);
bool isAir(int x, int y, int z);
};
class BlockUtilities
{
public:
BlockUtilities();
static Position2D getBlockFromNodeCoordinates(int x, int z);
};
#endif
*/