X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FScene.hh;h=f0e829db5e671edcead2652f6aca811f54efea92;hp=08ab6cc2441c7f58497fa01bffbe42853fb80e4c;hb=fdfba4553433b9b2804c2772c7645211b828c2ea;hpb=72d4af22710317acffab861421c4364b1780b6fe diff --git a/src/Moof/Scene.hh b/src/Moof/Scene.hh index 08ab6cc..f0e829d 100644 --- a/src/Moof/Scene.hh +++ b/src/Moof/Scene.hh @@ -34,27 +34,39 @@ #include #include +#include #include namespace Mf { +class Scene; +typedef boost::shared_ptr SceneP; + class Camera; + class Scene : public Resource { + class Impl; + boost::shared_ptr impl_; + public: + + inline static SceneP alloc(const std::string& name) + { + return SceneP(new Scene(name)); + } + Scene(const std::string& name); void draw(Scalar alpha, const Camera& cam) const; void refresh(); - static std::string getPathToResource(const std::string& name); + OctreeP getOctree() const; -private: - class SceneImpl; - boost::shared_ptr impl_; + static std::string getPath(const std::string& name); };