@ -227,10 +227,6 @@ file contains event listeners which print loading status on the page. The
status displayed in the remaining two ` & lt ; div & gt ; ` s , if they are available .
The CSS file contains rudimentary style to avoid eye bleeding .
The document ` & lt ; title & gt ; ` can be overriden by calling
@ ref Configuration : : setTitle ( ) , but that of course happens only after the app
fully loads .
The application redirects all output ( thus also @ ref Corrade : : Utility : : Debug " Debug " ,
@ ref Corrade : : Utility : : Warning " Warning " and @ ref Corrade : : Utility : : Error " Error " )
to JavaScript console . It ' s possible to pass command - line arguments to ` main ( ) `
@ -419,6 +415,7 @@ class Sdl2Application {
*/
void mainLoopIteration ( ) ;
# ifndef CORRADE_TARGET_EMSCRIPTEN
/**
* @ brief Underlying window handle
*
@ -426,6 +423,7 @@ class Sdl2Application {
* @ note Not available in @ ref CORRADE_TARGET_EMSCRIPTEN " Emscripten " .
*/
SDL_Window * window ( ) { return _window ; }
# endif
protected :
/* Nobody will need to have (and delete) Sdl2Application*, thus this is
@ -728,10 +726,12 @@ class Sdl2Application {
typedef Containers : : EnumSet < Flag > Flags ;
CORRADE_ENUMSET_FRIEND_OPERATORS ( Flags )
# ifndef CORRADE_TARGET_EMSCRIPTEN
SDL_Window * _window ;
SDL_GLContext _glContext ;
# ifndef CORRADE_TARGET_EMSCRIPTEN
UnsignedInt _minimalLoopPeriod ;
# else
SDL_Surface * _glContext ;
# endif
std : : unique_ptr < Platform : : Context > _context ;
@ -830,11 +830,12 @@ class Sdl2Application::Configuration {
/*implicit*/ Configuration ( ) ;
~ Configuration ( ) ;
# ifndef CORRADE_TARGET_IOS
# if !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_IOS)
/**
* @ brief Window title
*
* @ note Not available in @ ref CORRADE_TARGET_IOS " iOS " .
* @ note Not available in @ ref CORRADE_TARGET_EMSCRIPTEN " Emscripten "
* and @ ref CORRADE_TARGET_IOS " iOS " .
*/
std : : string title ( ) const { return _title ; }
# endif
@ -844,13 +845,12 @@ class Sdl2Application::Configuration {
* @ return Reference to self ( for method chaining )
*
* Default is ` " Magnum SDL2 Application " ` .
* @ note In @ ref CORRADE_TARGET_IOS " iOS " this function does nothing and
* is included only for compatibility . You need to set the title
* @ note In @ ref CORRADE_TARGET_EMSCRIPTEN " Emscripten " and
* @ ref CORRADE_TARGET_IOS " iOS " this function does nothing and is
* included only for compatibility . You need to set the title
* separately in platform - specific configuration file .
* In @ ref CORRADE_TARGET_EMSCRIPTEN " Emscripten " this title will
* be used to set ` document . title ` .
*/
# ifndef CORRADE_TARGET_IOS
# if !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_IOS)
Configuration & setTitle ( std : : string title ) {
_title = std : : move ( title ) ;
return * this ;
@ -975,7 +975,7 @@ class Sdl2Application::Configuration {
# endif
private :
# ifndef CORRADE_TARGET_IOS
# if !defined(CORRADE_TARGET_EMSCRIPTEN) && !defined(CORRADE_TARGET_IOS)
std : : string _title ;
# endif
Vector2i _size ;