2 #include "oxygine-include.h" 8 DECLARE_SMART(Stage, spStage);
15 ACTIVATE = sysEventID(
'S',
'A',
'c'),
16 DEACTIVATE = sysEventID(
'S',
'D',
'c'),
17 LOST_CONTEXT = sysEventID(
'S',
'L',
'C'),
20 static spStage instance;
21 static Rect calcCenteredViewport(
const Point& displaySize,
const Point& gameSize);
23 Stage(
bool autoHandleReset =
false);
46 RectF getDestRect()
const override;
49 std::string
dump(
const dumpOptions& opt)
const override;
52 void associateWithWindow(SDL_Window* wnd);
53 SDL_Window* getAssociatedWindow()
const;
54 static Stage* getStageFromWindow(SDL_Window* wnd);
58 void onDeactivate(
Event*);
59 void onActivate(
Event*);
63 bool isOn(
const Vector2& localPosition,
float localScale)
override;
79 inline const spStage& getStage() {
return Stage::instance;}
void setClipOuterArea(bool clip)
Definition: Stage.h:33
Definition: DebugActor.h:11
std::string dump(const dumpOptions &opt) const override
–oxgl-end–!
Definition: Actor.h:14
void init(const Point &displaySize, const Point &gameSize)
bool isOn(const Vector2 &localPosition, float localScale) override
void render(const Color *clearColor, const Rect &viewport, const Matrix &view, const Matrix &proj)