21 #ifndef GF_SCENE_MANAGER_H 22 #define GF_SCENE_MANAGER_H 29 #include "Portability.h" 31 #include "RenderStates.h" 32 #include "RenderWindow.h" 33 #include "RenderTexture.h" 36 #include "SegueEffect.h" 40 #ifndef DOXYGEN_SHOULD_SKIP_THIS 81 void pushScene(
Scene& scene);
222 bool m_scenesChanged;
224 std::vector<Ref<Scene>> m_currScenes;
225 std::vector<Ref<Scene>> m_prevScenes;
240 #ifndef DOXYGEN_SHOULD_SKIP_THIS 246 #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
Screen view.
Definition: Views.h:354
void replaceAllScenes(Scene &scene)
Replace all the scenes with a new scene.
Definition: SceneManager.h:131
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:90
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:107
constexpr AllType All
Constant to represent "all".
Definition: Types.h:61
Window & getWindow()
Get the window associated to the scene.
Definition: SceneManager.h:191
A segue effect.
Definition: SegueEffect.h:38
Represents a time value.
Definition: Time.h:65
A scene manager.
Definition: SceneManager.h:58
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
A constant reference to an array and its size.
Definition: ArrayRef.h:43
An OS window.
Definition: Window.h:81
void replaceAllScenes(ArrayRef< Ref< Scene >> scenes)
Replace all the scenes with many scenes.
Definition: SceneManager.h:143
float(*)(float) Easing
An easing function.
Definition: Easings.h:48
A constant reference to a string and its size.
Definition: StringRef.h:41
A transition between two scenes.
Definition: Segue.h:45
RenderTarget & getRenderer()
Get the renderer associated to the scene.
Definition: SceneManager.h:198
A scene in the game.
Definition: Scene.h:66
A reference wrapper.
Definition: Ref.h:39
void replaceScene(ArrayRef< Ref< Scene >> scenes)
Replace the top scene with many scenes.
Definition: SceneManager.h:119