14 struct FaceTransformation;
26 for (
int i = 0; i < 16; ++i)
40 const std::array<float, 16>&
GetMatrix()
const;
44 void SetTextureCoords(
const std::array<float, 4>& coords,
const bool overlay);
76 const std::array<float, 16>& matrix = f.
GetMatrix();
77 std::hash<float> hasher;
78 size_t value = hasher(matrix[0]);
80 for (
int i = 1; i < 16; ++i)
82 value ^= hasher(matrix[i]) + 0x9e3779b9 + (value << 6) + (value >> 2);
std::array< float, 4 > texture_coords_overlay
void SetTransparencyData(const Transparency transparency)
const std::array< float, 16 > & GetMatrix() const
std::array< unsigned int, 2 > texture_multipliers
void SetTextureMultipliers(const std::array< unsigned int, 2 > &mult)
static const std::vector< float > base_face
const std::array< float, 4 > & GetTextureCoords(const bool overlay) const
unsigned int texture_data
std::array< float, 4 > texture_coords
std::array< float, 16 > model_matrix
bool operator==(const Face &other) const
void SetDisplayBackface(const bool display_backface)
void SetTextureCoords(const std::array< float, 4 > &coords, const bool overlay)
Transparency GetTransparencyData() const
void UpdateMatrix(const FaceTransformation &transformations, const Orientation orientation)
Transparency
Transparency values for textures.
size_t operator()(const Botcraft::Renderer::Face &f) const