#include <WindowHandler.h>
Public Member Functions | |
WindowHandler () | |
WindowHandler (GLuint screen_width, GLuint screen_height, GLuint screen_depth) | |
~WindowHandler () | |
void | createWindow () |
void | initOpenGLDrawingSurface () |
void | initOpenGL () |
void | resizeVideoMode (GLuint screen_width, GLuint screen_height) |
void | toggleFullScreen () |
Protected Member Functions | |
void | resetupPixelFormat () |
Protected Attributes | |
SDL_Surface * | main_window_ |
This holds the SDL window. | |
GLuint | screen_width_ |
This holds the screen width of the window. | |
GLuint | screen_height_ |
This holds the screen height of the window. | |
GLuint | screen_depth_ |
This holds the screen depth (i.e., bit per pixel) of the window. | |
GLuint | pixel_format_flag_ |
Definition at line 19 of file WindowHandler.h.
|
The default constructor. Definition at line 39 of file WindowHandler.h. References pixel_format_flag_, screen_depth_, screen_height_, and screen_width_.
|
|
This constructor takes some screen preferences.
Definition at line 54 of file WindowHandler.h. References screen_depth_, screen_height_, and screen_width_.
|
|
The destructor. Definition at line 66 of file WindowHandler.h.
|
|
This creates a new SDL window in which virtual objects can be displayed and considered.
Definition at line 19 of file WindowHandler.cpp. References main_window_, pixel_format_flag_, resetupPixelFormat(), screen_depth_, screen_height_, and screen_width_.
Here is the call graph for this function: ![]() |
|
This initializes OpenGL. Definition at line 98 of file WindowHandler.cpp. References screen_height_, screen_height_, screen_width_, and screen_width_. Referenced by initOpenGLDrawingSurface(), and resizeVideoMode().
|
|
This initializes the OpenGL drawing surface Definition at line 87 of file WindowHandler.cpp. References initOpenGL().
Here is the call graph for this function: ![]() |
|
This resets the pixel format flag.
Definition at line 43 of file WindowHandler.cpp. References pixel_format_flag_, and screen_depth_. Referenced by createWindow().
|
|
This resizes the video mode.
Definition at line 119 of file WindowHandler.cpp. References initOpenGL(), main_window_, pixel_format_flag_, resizeVideoMode(), screen_depth_, screen_height_, and screen_width_. Referenced by resizeVideoMode(), and RenderingHandler::runMainLoop().
Here is the call graph for this function: ![]() |
|
This toggles full screen. Definition at line 137 of file WindowHandler.cpp. References main_window_. Referenced by RenderingHandler::handleKeyPressEvent().
|
|
This holds the SDL window.
Definition at line 23 of file WindowHandler.h. Referenced by createWindow(), resizeVideoMode(), and toggleFullScreen(). |
|
This holds the video flag which holds the rendering mode(s) for the OpenGL scene. Definition at line 32 of file WindowHandler.h. Referenced by createWindow(), resetupPixelFormat(), resizeVideoMode(), and WindowHandler(). |
|
This holds the screen depth (i.e., bit per pixel) of the window.
Definition at line 29 of file WindowHandler.h. Referenced by createWindow(), resetupPixelFormat(), resizeVideoMode(), and WindowHandler(). |
|
This holds the screen height of the window.
Definition at line 27 of file WindowHandler.h. Referenced by createWindow(), initOpenGL(), resizeVideoMode(), and WindowHandler(). |
|
This holds the screen width of the window.
Definition at line 25 of file WindowHandler.h. Referenced by createWindow(), initOpenGL(), resizeVideoMode(), and WindowHandler(). |