51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef TILE_HEADER
-#define TILE_HEADER
+#pragma once
#include "irrlichttypes.h"
#include "irr_v3d.h"
texture_id == other.texture_id &&
material_type == other.material_type &&
material_flags == other.material_flags &&
- color == other.color;
+ color == other.color &&
+ scale == other.scale;
}
/*!
case TILE_MATERIAL_LIQUID_TRANSPARENT:
material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
break;
+ default:
+ break;
}
material.BackfaceCulling = (material_flags & MATERIAL_FLAG_BACKFACE_CULLING) != 0;
if (!(material_flags & MATERIAL_FLAG_TILEABLE_HORIZONTAL)) {
* a color then the color of the node owning this tile.
*/
video::SColor color;
+
+ u8 scale;
};
/*!
struct TileSpec
{
TileSpec() {
- for (int layer = 0; layer < MAX_TILE_LAYERS; layer++)
- layers[layer] = TileLayer();
+ for (auto &layer : layers)
+ layer = TileLayer();
}
/*!
&& emissive_light == other.emissive_light;
}
+ //! If true, the tile rotation is ignored.
+ bool world_aligned = false;
+ //! Tile rotation.
u8 rotation = 0;
//! This much light does the tile emit.
u8 emissive_light = 0;
//! The first is base texture, the second is overlay.
TileLayer layers[MAX_TILE_LAYERS];
};
-#endif