dminer.core.blocks

Undocumented in source.

Members

Classes

BlockDef
class BlockDef
Undocumented in source.
CustomTopBlock
class CustomTopBlock
Undocumented in source.

Enums

BlockId
enum BlockId
Undocumented in source.
BlockImage
enum BlockImage
Undocumented in source.
BlockVisibility
enum BlockVisibility
Undocumented in source.

Functions

registerBlockType
void registerBlockType(BlockDef def)

registers new block type

Static functions

createFaceMesh
void createFaceMesh(float* data, Dir face, float x0, float y0, float z0, int tileIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
fillFaceMesh
void fillFaceMesh(float* data, float* src, float x0, float y0, float z0, int tileX, int tileY)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

BLOCK_DEFS
BlockDef[256] BLOCK_DEFS;
Undocumented in source.
BLOCK_TERRAIN_SMOOTHING
bool[256] BLOCK_TERRAIN_SMOOTHING;
Undocumented in source.
BLOCK_TYPE_CAN_PASS
bool[256] BLOCK_TYPE_CAN_PASS;
Undocumented in source.
BLOCK_TYPE_OPAQUE
bool[256] BLOCK_TYPE_OPAQUE;
Undocumented in source.
BLOCK_TYPE_VISIBLE
bool[256] BLOCK_TYPE_VISIBLE;
Undocumented in source.
face_indexes
ushort[6] face_indexes;
Undocumented in source.
face_indexes_back
ushort[6] face_indexes_back;
Undocumented in source.
face_vertices_down
float[VERTEX_COMPONENTS * 4] face_vertices_down;
Undocumented in source.
face_vertices_east
float[VERTEX_COMPONENTS * 4] face_vertices_east;
Undocumented in source.
face_vertices_north
float[VERTEX_COMPONENTS * 4] face_vertices_north;
Undocumented in source.
face_vertices_south
float[VERTEX_COMPONENTS * 4] face_vertices_south;
Undocumented in source.
face_vertices_up
float[VERTEX_COMPONENTS * 4] face_vertices_up;
Undocumented in source.
face_vertices_west
float[VERTEX_COMPONENTS * 4] face_vertices_west;
Undocumented in source.

Variables

BLOCK_SPRITE_OFFSET
int BLOCK_SPRITE_OFFSET;
Undocumented in source.
BLOCK_SPRITE_SIZE
int BLOCK_SPRITE_SIZE;
Undocumented in source.
BLOCK_SPRITE_STEP
int BLOCK_SPRITE_STEP;
Undocumented in source.
BLOCK_TEXTURE_DX
int BLOCK_TEXTURE_DX;
Undocumented in source.
BLOCK_TEXTURE_DY
int BLOCK_TEXTURE_DY;
Undocumented in source.
BLOCK_TEXTURE_FILENAME
string BLOCK_TEXTURE_FILENAME;
Undocumented in source.
BLOCK_TEXTURE_SPRITES_PER_LINE
int BLOCK_TEXTURE_SPRITES_PER_LINE;
Undocumented in source.
VERTEX_COMPONENTS
int VERTEX_COMPONENTS;
Undocumented in source.

Meta