Getting Started

PreviousNext

Scene management

Overview

EiffelMedia has the notion of a scene. This denotes an interactive scene which displays some content and allows user input. A scene can be an intro screen, a menu, a game screen, a loading screen, etc.

Scene types

The base type of any scene - EM_SCENE - is deferred and thus can not be used directly. There are various scene types alredy implemented and chances are you want to use one of them:

Components, widgets and windows will only work with component and widget scenes.

Scene change

To change the running scene, call set_next_scene and start_next_scene on the current scene.

Component and widget scene

There are two ways to use eiter a component scene or a widget scene:

Note: When using either a widget or component scene, the main_container of EM_SCENE is ignored! If you want to use EM_DRAWABLEs in your scene use an EM_DRAWABLE_PANEL.