X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fobject.h;h=f432177e7ebfd7cb221491d58ce35543af66f989;hp=82e12f14461f0b0b54d03fb3b83ab8b4a62c0c28;hb=e2765175f4a083623c1a9549695140ca902ce0b2;hpb=3c09b67afba6d560eab5817016a98268e1544bc4 diff --git a/source/object.h b/source/object.h index 82e12f14..f432177e 100644 --- a/source/object.h +++ b/source/object.h @@ -5,6 +5,7 @@ #include "bindable.h" #include "renderable.h" #include "renderpass.h" +#include "resourcewatcher.h" namespace Msp { namespace GL { @@ -23,7 +24,7 @@ In many cases, it's desirable to include multiple copies of an Object in a Scene, with different model matrices. ObjectInstances can be used to alter the rendering of an object on a per-instance basis. */ -class Object: public Renderable +class Object: public Renderable, private ResourceWatcher { public: class Loader: public DataFile::CollectionObjectLoader @@ -78,6 +79,8 @@ protected: private: const RenderPass *get_pass(const Tag &) const; + + virtual void resource_loaded(Resource &); }; } // namespace GL