Adonthell
0.4
|
Screen access is made through this class. More...
#include <screen.h>
Static Public Member Functions | |
static void | cleanup () |
static SDL_Renderer * | get_renderer () |
static u_int32 | format () |
static bool | init (u_int16 nl, u_int16 nh, u_int8 depth, const config &myconfig) |
Initializes the video subsystem and creates the required resources. More... | |
static u_int16 | length () |
Returns the length of the screen. More... | |
static u_int16 | height () |
Returns the height of the screen. More... | |
static u_int8 | bytes_per_pixel () |
Returns the screen depth, in bytes per pixel. More... | |
static u_int32 | trans_col () |
Returns the translucent color in screen's depth format. More... | |
static u_int8 | scale () |
Scale factor of the screen. More... | |
static u_int16 | offset_x () |
X offset of the viewport. More... | |
static u_int16 | offset_y () |
Y offset of the viewport. More... | |
static void | clear () |
Totally clears the screen with black. More... | |
static void | show () |
Ensure the framebuffer is copied to the physical screen. More... | |
static u_int8 | mode () |
Returns whether the current mode is fullscreen or windowed. More... | |
static bool | set_fullscreen (const u_int8 &m) |
Sets fullscreen/windowed mode. More... | |
static string | info () |
Returns information about the current screen settings, suitable for being displayed to the user. More... | |
static void | transition (u_int16 i) |
Make a nice transition effect. More... | |
Static Public Attributes | |
static surface | display |
The actual screen surface. More... | |
Screen access is made through this class.
This static class sets video modes, flush the frame buffer to the physical screen and make abstraction of the real screen depth to ease the graphic programmer's task.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
Make a nice transition effect.
i | advancement of the transition (finished when i == screen::length () / 2) |
|
static |