class hiro::modules::GeometryResource
Overview
Resource that holds and visualizes geometry. More…
#include <GeometryResource.h> class GeometryResource: public hiro::Resource { public: // construction GeometryResource(const std::string& name); GeometryResource(const std::string& name, hiro::draw::GeometryName geom_name); // methods void SetGeometry(hiro::draw::GeometryName geom_name); hiro::draw::GeometryName GetGeometry() const; };
Inherited Members
public: // fields const hiro::ResourceId ID; // methods virtual hiro::PGadget CreateGadget() = 0; void ResetGadgets(); virtual void Update(float delta_time); protected: // methods void DrawOnNextUpdate() const;
Detailed Documentation
Resource that holds and visualizes geometry.
Construction
GeometryResource(const std::string& name)
Creates new resource object that displays default geometry.
GeometryResource(const std::string& name, hiro::draw::GeometryName geom_name)
Creates new resource object that displays specified geometry.
Methods
void SetGeometry(hiro::draw::GeometryName geom_name)
Changes geometry currently being used.
hiro::draw::GeometryName GetGeometry() const
Returns name of geometry currently being used.