]> git.localhorst.tv Git - blank.git/blobdiff - src/model/Part.hpp
save a little bandwidth
[blank.git] / src / model / Part.hpp
index 3e3b57080316942b8c60622614b4cda9f64e80e9..3a17f2046137b39da28699d66452932978843471 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef BLAMK_MODEL_PART_HPP_
 #define BLAMK_MODEL_PART_HPP_
 
-#include "geometry.hpp"
-
 #include <cstdint>
 #include <list>
 #include <memory>
@@ -41,6 +39,8 @@ public:
        std::uint16_t Enumerate(std::uint16_t) noexcept;
        void Index(std::vector<Part *> &) noexcept;
 
+       std::uint16_t ID() const noexcept { return id; }
+
        glm::mat4 LocalTransform(const Instance &) const noexcept;
        glm::mat4 GlobalTransform(const Instance &) const noexcept;
 
@@ -56,8 +56,8 @@ private:
        std::vector<float> tex_map;
        mutable std::unique_ptr<EntityMesh> mesh;
        State initial;
-       glm::vec3 hsl_mod;
-       glm::vec3 rgb_mod;
+       glm::tvec3<unsigned char> hsl_mod;
+       glm::tvec3<unsigned char> rgb_mod;
        std::uint16_t id;
 
 };