class EntityMesh;
class Instance;
class Model;
+class ResourceIndex;
class Shape;
class ShapeRegistry;
-class TextureIndex;
class TokenStreamReader;
struct Part {
Part();
~Part();
- void Read(TokenStreamReader &, TextureIndex &, const ShapeRegistry &);
+ void Read(TokenStreamReader &, ResourceIndex &, const ShapeRegistry &);
Part &AddChild();
const std::list<Part> &Children() const noexcept { return children; }
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;