The SDLWindow class implements an OpenGLContext using the SDL API.
More...
#include <SDLWindow.hpp>
List of all members.
Public Member Functions |
| | SDLWindow () |
| | SDLWindow (const vl::String &title, const vl::OpenGLContextFormat &info, int x=0, int y=0, int width=640, int height=480) |
| bool | initSDLWindow (const vl::String &title, const vl::OpenGLContextFormat &info, int x=0, int y=0, int width=640, int height=480) |
| | ~SDLWindow () |
| void | setPosition (int x, int y) |
| virtual void | swapBuffers () |
| void | translateEvent (SDL_Event *ev) |
| void | destroy () |
| void | quitApplication () |
| | Quits the event loop.
|
| void | setWindowTitle (const vl::String &) |
| void | setMouseVisible (bool visible) |
| void | setMousePosition (int x, int y) |
| void | update () |
| void | makeCurrent () |
Static Public Member Functions |
| static SDL_Surface * | sdlSurface () |
Static Protected Attributes |
| static SDL_Surface * | mScreen = NULL |
Detailed Description
The SDLWindow class implements an OpenGLContext using the SDL API.
- Note:
- SDL notifies Unicode codes only on key-press events not on release events.
Constructor & Destructor Documentation
| SDLWindow::~SDLWindow |
( |
) |
|
Member Function Documentation
| void SDLWindow::setPosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| [virtual] |
| void SDLWindow::swapBuffers |
( |
) |
[virtual] |
| void SDLWindow::translateEvent |
( |
SDL_Event * |
ev ) |
|
| void SDLWindow::destroy |
( |
) |
[virtual] |
| void SDLWindow::quitApplication |
( |
) |
[virtual] |
| void SDLWindow::setWindowTitle |
( |
const vl::String & |
title ) |
[virtual] |
| void vlSDL::SDLWindow::setMouseVisible |
( |
bool |
visible ) |
[inline, virtual] |
| void vlSDL::SDLWindow::setMousePosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| [inline, virtual] |
| void SDLWindow::update |
( |
) |
[virtual] |
| void vlSDL::SDLWindow::makeCurrent |
( |
) |
[inline, virtual] |
| static SDL_Surface* vlSDL::SDLWindow::sdlSurface |
( |
) |
[inline, static] |
Member Data Documentation
The documentation for this class was generated from the following files:
- C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlSDL/SDLWindow.hpp
- C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlSDL/SDLWindow.cpp