21 #ifndef HX3D_GRAPHICS_FADETRANSITION 22 #define HX3D_GRAPHICS_FADETRANSITION 24 #include "hx3d/graphics/transition.hpp" 25 #include "hx3d/graphics/color.hpp" 45 virtual void onUpdate(
float delta)
override;
46 virtual void onDone()
override;
47 virtual void onStart()
override;
FadeTransition(window::Game *game, Color color=Color::Black)
Create a fading transition with a color.
Game main class: multiple screens management.
virtual void render(Batch &batch, Framebuffer ¤tFB, Framebuffer &nextFB) override
Render the transition.
Four [0..255] components defined color.
Transition between two screens.
virtual void onStart() override
On transition start callback.
virtual void onDone() override
On transition done callback.
Simple base batch implementation. Draw at each draw call.
virtual void onUpdate(float delta) override
On transition update callback.
Render-to-texture buffer.
static Color Black
Black color.