TileMesh

A mesh for a tile

Constructors

this
this(vec3 size, TextureAtlas atlas, string frontTexture, string backTexture, string sideTexture, string capTexture)

Construct a new tile

Destructor

~this
~this()

Destructor

Members

Functions

draw
void draw(Camera camera, mat4 transform)

Draws the tile

draw2d
void draw2d(Camera2D camera, vec2 position, float scale, quat rotation)

Draws the tile on a 2D plane

setTexture
void setTexture(TileMeshSide side, AtlasArea tex)

Changes the texture of a side of the tile

Static functions

begin
void begin()

Begin rendering tiles

end
void end()

End rendering tiles

Variables

available
bool available;

Availability

Meta