17 #ifndef HEADER_SUPERTUX_SUPERTUX_SCREEN_HPP 18 #define HEADER_SUPERTUX_SUPERTUX_SCREEN_HPP 20 #include "sdk/integration.hpp" virtual void draw(Compositor &compositor)=0
gets called once per frame.
Definition: controller.hpp:57
Abstract base class for code the MainLoop runs exclusively and full-screen.
Definition: screen.hpp:31
virtual void update(float dt_sec, const Controller &controller)=0
gets called for once (per logical) frame.
virtual void leave()
gets called when the current screen is temporarily suspended
Definition: screen.hpp:44
Definition: compositor.hpp:29
Definition: integration.hpp:26
virtual IntegrationStatus get_status() const =0
Gives details about what the user is doing right now.
virtual void setup()
gets called before this screen gets activated (which is at least once before the first draw or update...
Definition: screen.hpp:41