mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
41 lines
810 B
C++
41 lines
810 B
C++
#ifndef __sgScene__
|
|
#define __sgScene__
|
|
|
|
|
|
class sgCore_API sgCScene
|
|
{
|
|
public:
|
|
static sgCScene* GetScene();
|
|
private:
|
|
sgCScene();
|
|
~sgCScene();
|
|
|
|
IObjectsList* m_objects_list;
|
|
IObjectsList* m_selected_objects_list;
|
|
public:
|
|
|
|
IObjectsList* GetObjectsList() const;
|
|
IObjectsList* GetSelectedObjectsList() const;
|
|
|
|
bool AttachObject(sgCObject*);
|
|
void DetachObject(sgCObject*);
|
|
|
|
/*********************************************************************/
|
|
bool StartUndoGroup();
|
|
bool EndUndoGroup();
|
|
bool IsUndoStackEmpty() const;
|
|
bool IsRedoStackEmpty() const;
|
|
bool Undo();
|
|
bool Redo();
|
|
/*********************************************************************/
|
|
void Clear();
|
|
|
|
void GetGabarits(SG_POINT& p_min, SG_POINT& p_max);
|
|
|
|
PRIVATE_ACCESS
|
|
};
|
|
|
|
#define sgGetScene sgCScene::GetScene
|
|
|
|
|
|
#endif |