SdlApp

Undocumented in source.

Constructors

this
this(int w, int h, string title)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

Event
alias Event = SDL_Event
Undocumented in source.
OnClose
alias OnClose = bool delegate()
Undocumented in source.
OnDraw
alias OnDraw = void delegate()
Undocumented in source.
OnKeyboardChar
alias OnKeyboardChar = bool delegate(dchar ch)
Undocumented in source.
OnResize
alias OnResize = void delegate(int w, int h)
Undocumented in source.
OnSdlEvent
alias OnSdlEvent = bool delegate(ref const(SDL_Event) event)
Undocumented in source.

Functions

addHandler
void addHandler(OnSdlEvent newHandler)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
invalidate
void invalidate()
Undocumented in source. Be warned that the author may not have intended to support it.
logger
Logger logger()
Undocumented in source. Be warned that the author may not have intended to support it.
onBeforeLoopStart
void onBeforeLoopStart(void delegate() dg)
Undocumented in source. Be warned that the author may not have intended to support it.
onBeforeLoopStart
auto onBeforeLoopStart()
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
void onClose(OnClose handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
auto onClose()
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
void onDraw(OnDraw handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
auto onDraw()
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyDown
void onKeyDown(OnSdlEvent handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyDown
auto onKeyDown()
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyUp
void onKeyUp(OnSdlEvent handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyUp
auto onKeyUp()
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyboardChar
void onKeyboardChar(OnKeyboardChar handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyboardChar
auto onKeyboardChar()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseDown
void onMouseDown(OnSdlEvent handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseDown
auto onMouseDown()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMotion
void onMouseMotion(OnSdlEvent handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMotion
auto onMouseMotion()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
void onMouseUp(OnSdlEvent handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
auto onMouseUp()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseWheel
void onMouseWheel(OnSdlEvent handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseWheel
auto onMouseWheel()
Undocumented in source. Be warned that the author may not have intended to support it.
onResize
void onResize(OnResize handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onResize
auto onResize()
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_dirty
bool _dirty;
Undocumented in source.
_gl
OpenGL _gl;
Undocumented in source.
_log
Logger _log;
Undocumented in source.
_sdl2
SDL2 _sdl2;
Undocumented in source.
height
int height;
Undocumented in source.
pauseTimeMs
int pauseTimeMs;
Undocumented in source.
width
int width;
Undocumented in source.
window
SDL2Window window;
Undocumented in source.

Meta