#include <sdl.hpp>
|
| | SdlWindow () |
| |
| | ~SdlWindow () |
| |
| bool | createWindow (const char *title, int x, int y, int w, int h, bool legacyGlOnly) |
| |
| void | mainLoop () |
| | Runs the window loop. More...
|
| |
| void | mainIter () |
| |
| void | signalLoop () |
| |
| void | setOnIdle (IdleDelegate func) |
| |
| void | setOnExpose (Delegate func) |
| |
| void | setOnReshape (WindowDelegate func) |
| |
| void | setOnKeyDown (int key, Delegate func) |
| |
| void | setOnKeyDown (int key, KeyDelegate func) |
| |
| void | setOnMouseDown (int btn, MouseDelegate func) |
| |
| void | setOnMouseUp (int btn, MouseDelegate func) |
| |
| void | setOnMouseMove (int btn, MouseDelegate func) |
| |
| void | setTouchPinchCallback (TouchDelegate cb) |
| |
| void | setTouchRotateCallback (TouchDelegate cb) |
| |
| void | clearEvents () |
| |
| void | callKeyDown (SDL_Keycode k, Uint16 mod=0) |
| |
| void | getWindowSize (int &w, int &h) |
| |
| void | getGLDrawSize (int &w, int &h) |
| |
| void | getDpi (int &wdpi, int &hdpi) |
| |
| bool | isHighDpi () const |
| | This property is set by createWindow(). More...
|
| |
| gl3::MeshRenderer & | getRenderer () |
| |
| void | setWindowTitle (std::string &title) |
| |
| void | setWindowTitle (const char *title) |
| |
| void | setWindowSize (int w, int h) |
| |
| void | setWindowPos (int x, int y) |
| |
| void | signalKeyDown (SDL_Keycode k, SDL_Keymod m=KMOD_NONE) |
| |
| void | signalExpose () |
| |
| void | signalSwap () |
| |
| void | signalQuit () |
| |
| std::string | getSavedKeys () const |
| | Returns the keyboard events that have been logged by the window. More...
|
| |
| void | screenshot (std::string filename, bool convert=false) |
| | Queues a screenshot to be taken. More...
|
| |
| void | swapBuffer () |
| |
| | operator bool () |
| |
| bool | isWindowInitialized () |
| |
| bool | isGlInitialized () |
| | Returns true if the OpenGL context was successfully initialized. More...
|
| |
| bool | isSwapPending () |
| |
| bool | isExposePending () |
| |
| std::string | getCanvasId () const |
| |
| void | setCanvasId (std::string canvas_id) |
| |
Definition at line 41 of file sdl.hpp.
| SdlWindow::~SdlWindow |
( |
| ) |
|
| void SdlWindow::callKeyDown |
( |
SDL_Keycode |
k, |
|
|
Uint16 |
mod = 0 |
|
) |
| |
|
inline |
| void SdlWindow::clearEvents |
( |
| ) |
|
|
inline |
| bool SdlWindow::createWindow |
( |
const char * |
title, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
bool |
legacyGlOnly |
|
) |
| |
Creates a new OpenGL window. Returns false if SDL or OpenGL initialization fails.
Definition at line 90 of file sdl.cpp.
| std::string SdlWindow::getCanvasId |
( |
| ) |
const |
|
inline |
| void SdlWindow::getDpi |
( |
int & |
wdpi, |
|
|
int & |
hdpi |
|
) |
| |
| void SdlWindow::getGLDrawSize |
( |
int & |
w, |
|
|
int & |
h |
|
) |
| |
| std::string SdlWindow::getSavedKeys |
( |
| ) |
const |
|
inline |
Returns the keyboard events that have been logged by the window.
Definition at line 238 of file sdl.hpp.
| void SdlWindow::getWindowSize |
( |
int & |
w, |
|
|
int & |
h |
|
) |
| |
| bool SdlWindow::isExposePending |
( |
| ) |
|
|
inline |
| bool SdlWindow::isGlInitialized |
( |
| ) |
|
Returns true if the OpenGL context was successfully initialized.
Definition at line 76 of file sdl.cpp.
| bool SdlWindow::isHighDpi |
( |
| ) |
const |
|
inline |
| bool SdlWindow::isSwapPending |
( |
| ) |
|
|
inline |
| bool SdlWindow::isWindowInitialized |
( |
| ) |
|
|
inline |
| void SdlWindow::mainIter |
( |
| ) |
|
| void SdlWindow::mainLoop |
( |
| ) |
|
Runs the window loop.
Definition at line 483 of file sdl.cpp.
| SdlWindow::operator bool |
( |
| ) |
|
|
inline |
| void SdlWindow::screenshot |
( |
std::string |
filename, |
|
|
bool |
convert = false |
|
) |
| |
|
inline |
Queues a screenshot to be taken.
Definition at line 241 of file sdl.hpp.
| void SdlWindow::setCanvasId |
( |
std::string |
canvas_id | ) |
|
|
inline |
| void SdlWindow::setOnExpose |
( |
Delegate |
func | ) |
|
|
inline |
| void SdlWindow::setOnKeyDown |
( |
int |
key, |
|
|
Delegate |
func |
|
) |
| |
|
inline |
| void SdlWindow::setOnKeyDown |
( |
int |
key, |
|
|
KeyDelegate |
func |
|
) |
| |
|
inline |
| void SdlWindow::setWindowPos |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
| void SdlWindow::setWindowSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
| void SdlWindow::setWindowTitle |
( |
std::string & |
title | ) |
|
| void SdlWindow::setWindowTitle |
( |
const char * |
title | ) |
|
| void SdlWindow::signalExpose |
( |
| ) |
|
|
inline |
| void SdlWindow::signalKeyDown |
( |
SDL_Keycode |
k, |
|
|
SDL_Keymod |
m = KMOD_NONE |
|
) |
| |
| void SdlWindow::signalLoop |
( |
| ) |
|
| void SdlWindow::signalQuit |
( |
| ) |
|
|
inline |
| void SdlWindow::signalSwap |
( |
| ) |
|
|
inline |
| void SdlWindow::StartSDL |
( |
bool |
server_mode | ) |
|
|
static |
| void SdlWindow::swapBuffer |
( |
| ) |
|
The documentation for this class was generated from the following files: