#ifndef NETWORK_H #define NETWORK_H #include "link.h" #include #include #include #include #include #include #include class Texture; class Shader; class Network { public: explicit Network(const std::string & textureName); [[nodiscard]] NodePtr findNodeAt(glm::vec3) const; protected: using Nodes = std::set>; Nodes nodes; std::shared_ptr texture; }; template class NetworkOf : public Network, public Renderable { protected: using Network::Network; Collection links; public: void render(const Shader &) const override; }; #endif