Skip to content

Instantly share code, notes, and snippets.

@adventureloop
Created March 31, 2012 18:49
Show Gist options
  • Save adventureloop/2267501 to your computer and use it in GitHub Desktop.
Save adventureloop/2267501 to your computer and use it in GitHub Desktop.
Block types header
#ifndef Cubeworld_BlockTypes_h
#define Cubeworld_BlockTypes_h
enum BLOCK_TYPES
{
BLOCK_AIR,
BLOCK_SOLID,
BLOCK_GRASS,
BLOCK_DIRT,
BLOCK_WATER,
BLOCK_WOOD,
BLOCK_LEAF,
BLOCK_SAND,
BLOCK_STONE
};
extern float BLOCK_COLOURS[][4] =
{
{0.0,0.0,0.0,1.0}, //Block air
{1.0,1.0,1.0,1.0}, //Block solid
{0.12,0.5,0.12,1.0}, //Block grass
{0.5,0.25,0.0,1.0}, //Block dirt
{0.0,0.2,1.0,1.0}, //Block water
{0.34,0.15,0.0,1.0}, //Block wood
{0.0,1.0,0.0,1.0}, //Block leaf
{0.6,0.6,0.6,1.0}, //Block sand
{0.6,0.6,0.25,1.0}, //Block stone
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment