21 #ifndef GF_SCENE_MANAGER_H 22 #define GF_SCENE_MANAGER_H 30 #include "GraphicsApi.h" 32 #include "RenderStates.h" 33 #include "RenderWindow.h" 34 #include "RenderTexture.h" 37 #include "SegueEffect.h" 42 #ifndef DOXYGEN_SHOULD_SKIP_THIS 84 void pushScene(
Scene& scene);
220 virtual void doGlobalProcessEvent(
const Event& event);
228 bool m_scenesChanged;
230 std::vector<Ref<Scene>> m_currScenes;
231 std::vector<Ref<Scene>> m_prevScenes;
246 #ifndef DOXYGEN_SHOULD_SKIP_THIS 252 #endif // GF_SCENE_MANAGER_H 2D camera that defines what region is shown on framebuffer
Definition: View.h:94
Target for off-screen 2D rendering into a texture.
Definition: RenderTexture.h:98
float(*)(float) Easing
An easing function.
Definition: Easings.h:48
Screen view.
Definition: Views.h:354
void replaceAllScenes(Scene &scene)
Replace all the scenes with a new scene.
Definition: SceneManager.h:134
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Bitfield relying on an enumeration.
Definition: Flags.h:46
void replaceScene(Scene &scene)
Replace the top scene with a new scene.
Definition: SceneManager.h:110
A span.
Definition: Span.h:36
Window & getWindow()
Get the window associated to the scene.
Definition: SceneManager.h:194
A segue effect.
Definition: SegueEffect.h:38
Represents a time value.
Definition: Time.h:65
A scene manager.
Definition: SceneManager.h:61
The namespace for gf classes.
Definition: Action.h:35
static float linear(float t)
Linear easing.
A window that can serve as a target for 2D drawing.
Definition: RenderWindow.h:80
void replaceAllScenes(Span< const Ref< Scene >> scenes)
Replace all the scenes with many scenes.
Definition: SceneManager.h:146
An OS window.
Definition: Window.h:82
If all of the activities ends.
A transition between two scenes.
Definition: Segue.h:45
RenderTarget & getRenderer()
Get the renderer associated to the scene.
Definition: SceneManager.h:201
void replaceScene(Span< const Ref< Scene >> scenes)
Replace the top scene with many scenes.
Definition: SceneManager.h:122
Defines a system event and its parameters.
Definition: Event.h:224
A scene in the game.
Definition: Scene.h:66
A reference wrapper.
Definition: Ref.h:39