#include <cvideo.h>
Inheritance diagram for CScreen:


Public Member Functions | |
| CScreen (CSurfaceImpl *n_impl) | |
| void | set_video_mode (int width, int height, int depth) |
| void | flip () |
| void | update_rects (CRectList &rects) |
| void | set_fullscreen_mode (int mode) |
| int | get_fullscreen_mode () |
Note that although this class isn't a singleton, its creation and access is available only through the CVideoSystem singleton's get_screen() method, which effectively makes it a singleton
In the future, the interface could be expanded so screen #2 can be retrieved by calling something like CVideoSystemManager::get_instance().get_screen(2).
See CVideoSystem::get_screen() for more information.
Definition at line 418 of file cvideo.h.
|
|
Creates a CScreen object with the given CSurfaceImpl implementation object. Definition at line 430 of file cvideo.h. References CSurface::impl. |
|
|
Flips the screen so changes applied to it take effect. Definition at line 438 of file cvideo.h. References CSurfaceImpl::flip(), and CSurface::impl. |
Here is the call graph for this function:

|
|
Returns whether the screen is fullscreen or windowed. |
|
|
Sets whether the screen is in fullscreen mode or windowed. Definition at line 444 of file cvideo.h. References CSurface::get_depth(), CSurface::get_height(), CSurface::get_width(), and set_video_mode(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Sets the video mode of the surface. Definition at line 433 of file cvideo.h. References CSurface::impl, and CSurfaceImpl::set_video_mode(). |
Here is the call graph for this function:

|
|
Like flip(), but only updates the given rects on screen. Definition at line 441 of file cvideo.h. References CSurface::impl, and CSurfaceImpl::update_rects(). |
Here is the call graph for this function:

1.3.3