]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Scene.hh
considerable refactoring
[chaz/yoink] / src / Moof / Scene.hh
index 4c4f29775b2ae21033fb69e8e9017b2ee542c5ff..f0e829db5e671edcead2652f6aca811f54efea92 100644 (file)
 namespace Mf {
 
 
+class Scene;
+typedef boost::shared_ptr<Scene> SceneP;
+
 class Camera;
 
+
 class Scene : public Resource
 {
+       class Impl;
+       boost::shared_ptr<Impl> 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();
 
-       OctreePtr getOctree() const;
+       OctreeP getOctree() const;
 
        static std::string getPath(const std::string& name);
-
-private:
-       class Impl;
-       boost::shared_ptr<Impl> impl_;
 };
 
 
This page took 0.018871 seconds and 4 git commands to generate.