aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/misc.cmake
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-21 14:09:32 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-21 15:06:44 +0200
commitfa416e71169c25fb5e9cde244a180f6f64a9282e (patch)
tree7d096f496d8b45fb53c4db51832ebd6944a771e2 /cmake/Modules/misc.cmake
parent71b2e0e002603e1a0e01a095e5e8e562e758c209 (diff)
downloadminetest-fa416e71169c25fb5e9cde244a180f6f64a9282e.tar.gz
minetest-fa416e71169c25fb5e9cde244a180f6f64a9282e.tar.bz2
minetest-fa416e71169c25fb5e9cde244a180f6f64a9282e.zip
Add more graph colors, add mainloop_dtime graph, make statustext fade away faster
Diffstat (limited to 'cmake/Modules/misc.cmake')
0 files changed, 0 insertions, 0 deletions
quot;irrlichttypes.h" #include <string> #include <vector> typedef u16 override_t; //! Bitmask enum specifying what a texture override should apply to enum class OverrideTarget : override_t { INVALID = 0, TOP = 1 << 0, BOTTOM = 1 << 1, LEFT = 1 << 2, RIGHT = 1 << 3, FRONT = 1 << 4, BACK = 1 << 5, INVENTORY = 1 << 6, WIELD = 1 << 7, SPECIAL_1 = 1 << 8, SPECIAL_2 = 1 << 9, SPECIAL_3 = 1 << 10, SPECIAL_4 = 1 << 11, SPECIAL_5 = 1 << 12, SPECIAL_6 = 1 << 13, // clang-format off SIDES = LEFT | RIGHT | FRONT | BACK, ALL_FACES = TOP | BOTTOM | SIDES, ALL_SPECIAL = SPECIAL_1 | SPECIAL_2 | SPECIAL_3 | SPECIAL_4 | SPECIAL_5 | SPECIAL_6, NODE_TARGETS = ALL_FACES | ALL_SPECIAL, ITEM_TARGETS = INVENTORY | WIELD, // clang-format on }; struct TextureOverride { std::string id; std::string texture; override_t target; // Helper function for checking if an OverrideTarget is found in // a TextureOverride without casting inline bool hasTarget(OverrideTarget overrideTarget) const { return (target & static_cast<override_t>(overrideTarget)) != 0; } }; //! Class that provides texture override information from a texture pack class TextureOverrideSource { public: TextureOverrideSource(std::string filepath); //! Get all overrides that apply to item definitions std::vector<TextureOverride> getItemTextureOverrides();