VOX
A little voxel engine
Loading...
Searching...
No Matches
Block.hpp File Reference
#include "define.hpp"
#include "HitBox.hpp"
#include <string>
#include <vector>
Include dependency graph for Block.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BlockInfo
 
class  BlocksInfo
 

Macros

#define BLOCK_PROPERTY_NONE   0U
 
#define BLOCK_PROPERTY_SOLID   1U
 
#define BLOCK_PROPERTY_OPAQUE   1U << 1
 
#define BLOCK_PROPERTY_CUBE   1U << 2
 
#define BLOCK_PROPERTY_LIGHT   1U << 3
 
#define BLOCK_PROPERTY_FLUID   1U << 4
 
#define BLOCK_FACE_TOP   0
 
#define BLOCK_FACE_BOTTOM   1
 
#define BLOCK_FACE_RIGHT   2
 
#define BLOCK_FACE_LEFT   3
 
#define BLOCK_FACE_FRONT   4
 
#define BLOCK_FACE_BACK   5
 

Typedefs

typedef uint64_t BlockProperties
 
typedef uint32_t TextureID
 
typedef BlockInfo::Type BlockType
 

Variables

BlocksInfog_blocks_info
 

Macro Definition Documentation

◆ BLOCK_FACE_BACK

#define BLOCK_FACE_BACK   5

◆ BLOCK_FACE_BOTTOM

#define BLOCK_FACE_BOTTOM   1

◆ BLOCK_FACE_FRONT

#define BLOCK_FACE_FRONT   4

◆ BLOCK_FACE_LEFT

#define BLOCK_FACE_LEFT   3

◆ BLOCK_FACE_RIGHT

#define BLOCK_FACE_RIGHT   2

◆ BLOCK_FACE_TOP

#define BLOCK_FACE_TOP   0

◆ BLOCK_PROPERTY_CUBE

#define BLOCK_PROPERTY_CUBE   1U << 2

◆ BLOCK_PROPERTY_FLUID

#define BLOCK_PROPERTY_FLUID   1U << 4

◆ BLOCK_PROPERTY_LIGHT

#define BLOCK_PROPERTY_LIGHT   1U << 3

◆ BLOCK_PROPERTY_NONE

#define BLOCK_PROPERTY_NONE   0U

◆ BLOCK_PROPERTY_OPAQUE

#define BLOCK_PROPERTY_OPAQUE   1U << 1

◆ BLOCK_PROPERTY_SOLID

#define BLOCK_PROPERTY_SOLID   1U

Typedef Documentation

◆ BlockProperties

typedef uint64_t BlockProperties

◆ BlockType

◆ TextureID

typedef uint32_t TextureID

Variable Documentation

◆ g_blocks_info

BlocksInfo& g_blocks_info
extern