CMake build added. Basic OpenGL 3.3 Mesh Rendering
This commit is contained in:
34
src/MapBlock.h
Normal file
34
src/MapBlock.h
Normal 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
|
||||
*/
|
||||
Reference in New Issue
Block a user