29#define MATERIAL_FLAG_BACKFACE_CULLING 0x01
31#define MATERIAL_FLAG_CRACK 0x02
34#define MATERIAL_FLAG_CRACK_OVERLAY 0x04
35#define MATERIAL_FLAG_ANIMATION 0x08
37#define MATERIAL_FLAG_TILEABLE_HORIZONTAL 0x20
38#define MATERIAL_FLAG_TILEABLE_VERTICAL 0x40
52#define MAX_TILE_LAYERS 2
78 return !(*
this == other);
118 std::vector<FrameSpec> *
frames =
nullptr;
124 video::SColor
color = video::SColor(0, 0, 0, 0);
video::ITexture * texture
Definition tile.h:49
u32 texture_id
Definition tile.h:48
Defines a layer of a tile.
Definition tile.h:56
video::SColor color
Definition tile.h:124
bool operator==(const TileLayer &other) const
Definition tile.h:62
std::vector< FrameSpec > * frames
Definition tile.h:118
bool has_color
If true, the tile has its own color.
Definition tile.h:116
void applyMaterialOptionsWithShaders(video::SMaterial &material) const
Definition tile.cpp:40
u8 scale
Definition tile.h:126
void applyMaterialOptions(video::SMaterial &material) const
Definition tile.cpp:8
u16 animation_frame_count
Definition tile.h:106
u8 material_flags
Definition tile.h:109
video::ITexture * texture
Definition tile.h:99
u32 shader_id
Definition tile.h:101
u16 animation_frame_length_ms
Definition tile.h:105
bool isTransparent() const
Definition tile.h:86
u8 material_type
Definition tile.h:108
u32 texture_id
Definition tile.h:103
bool operator!=(const TileLayer &other) const
Definition tile.h:76
TileRotation rotation
Tile rotation.
Definition tile.h:146
bool world_aligned
If true, the tile rotation is ignored.
Definition tile.h:144
u8 emissive_light
This much light does the tile emit.
Definition tile.h:148
TileLayer layers[MAX_TILE_LAYERS]
The first is base texture, the second is overlay.
Definition tile.h:150
#define MATERIAL_FLAG_BACKFACE_CULLING
Definition tile.h:29
#define MATERIAL_FLAG_TILEABLE_VERTICAL
Definition tile.h:38
TileRotation
Definition tile.h:129
MaterialType
Definition tile.h:12
@ TILE_MATERIAL_PLAIN_ALPHA
Definition tile.h:24
@ TILE_MATERIAL_OPAQUE
Definition tile.h:19
@ TILE_MATERIAL_LIQUID_TRANSPARENT
Definition tile.h:15
@ TILE_MATERIAL_WAVING_PLANTS
Definition tile.h:18
@ TILE_MATERIAL_WAVING_LIQUID_TRANSPARENT
Definition tile.h:21
@ TILE_MATERIAL_BASIC
Definition tile.h:13
@ TILE_MATERIAL_LIQUID_OPAQUE
Definition tile.h:16
@ TILE_MATERIAL_WAVING_LIQUID_OPAQUE
Definition tile.h:22
@ TILE_MATERIAL_WAVING_LIQUID_BASIC
Definition tile.h:20
@ TILE_MATERIAL_WAVING_LEAVES
Definition tile.h:17
@ TILE_MATERIAL_ALPHA
Definition tile.h:14
@ TILE_MATERIAL_PLAIN
Definition tile.h:23
#define MATERIAL_FLAG_TILEABLE_HORIZONTAL
Definition tile.h:37
#define MAX_TILE_LAYERS
Definition tile.h:52