module charge.core.sdl
Core

Source file for CoreSDL.

Code Map

//! Source file for CoreSDL.
module charge.core.sdl;


//! Multi-platform Core based on SDL.
class CoreSDL : CommonCore
{
public:
	this(opts: Options) { }
	fn quit(ret: i32) { }
	fn panic(msg: string) { }
	fn getClipboardText() string { }
	fn screenShot() { }
	fn resize(w: u32, h: u32, mode: WindowMode) { }
	fn size(w: u32, h: u32, mode: WindowMode) { }


protected:
	fn getTicks() i64 { }
	fn doInput() { }
	fn doRenderAndSwap() { }
	fn doSleep(diff: i64) { }
	fn doClose() { }
}

class InputSDL : Input
{
public:
	this(numJoysticks: size_t) { }
}

class MouseSDL : Mouse
{
public:
	this() { }
	fn setRelativeMode(value: bool) { }
	fn getRelativeMode() bool { }
}

class KeyboardSDL : Keyboard
{
public:
	this() { }
}

class JoystickSDL : Joystick
{
public:
	this(id: size_t) { }
	fn handleEvent(e: SDL_Event) { }
	fn enabled(status: bool) bool { }
	fn enabled() bool { }
}

fn start(opts: Options) Core { }
class CoreSDL : CommonCore

Multi-platform Core based on SDL.