plugins/script/SceneNodeBuffer.h
raw| 1 | #ifndef _SCENE_NODE_BUFFER_H_ |
| 2 | #define _SCENE_NODE_BUFFER_H_ |
| 3 | |
| 4 | #include <vector> |
| 5 | #include "inode.h" |
| 6 | |
| 7 | namespace script |
| 8 | { |
| 9 | |
| 10 | // Singleton vector carrying scene::INodePtrs |
| 11 | // Used to prevent auto-destruction on node creation |
| 12 | class SceneNodeBuffer : |
| 13 | public std::vector<scene::INodePtr> |
| 14 | { |
| 15 | public: |
| 16 | static SceneNodeBuffer& Instance(); |
| 17 | }; |
| 18 | |
| 19 | } // namespace script |
| 20 | |
| 21 | #endif /* _SCENE_NODE_BUFFER_H_ */ |