52 static void cleanup();
54 static SDL_Renderer *get_renderer()
61 return Window != NULL ? SDL_GetWindowPixelFormat(Window) : SDL_PIXELFORMAT_UNKNOWN;
102 return bytes_per_pixel_;
145 SDL_SetRenderDrawColor(Renderer, 0, 0, 0, SDL_ALPHA_OPAQUE);
146 if (clip_rect_.x || clip_rect_.y)
149 SDL_RenderSetClipRect(Renderer, NULL);
150 SDL_RenderClear(Renderer);
151 SDL_RenderSetClipRect(Renderer, &clip_rect_);
155 SDL_RenderClear(Renderer);
163 SDL_RenderPresent(Renderer);
187 static bool set_fullscreen (
const u_int8 & m);
196 static string info ();
203 static void transition (
u_int16 i);
208 static void update_scale();
211 static u_int8 bytes_per_pixel_;
220 static SDL_Window *Window;
223 static SDL_Renderer *Renderer;
229 static SDL_Rect clip_rect_;
u_int16 length() const
Returns the length of the drawable.
#define u_int16
16 bits long unsigned integer
static void show()
Ensure the framebuffer is copied to the physical screen.
Class where drawables can actually be drawn to.
Adonthell's configuration.
static u_int16 length()
Returns the length of the screen.
#define u_int32
32 bits long unsigned integer
#define u_int8
8 bits long unsigned integer
static u_int8 scale()
Scale factor of the screen.
static u_int16 offset_x()
X offset of the viewport.
static void clear()
Totally clears the screen with black.
static u_int16 offset_y()
Y offset of the viewport.
Screen access is made through this class.
u_int16 height() const
Returns the height of the drawable.
static u_int8 bytes_per_pixel()
Returns the screen depth, in bytes per pixel.
Declares the surface class.
static surface display
The actual screen surface.
static u_int32 trans_col()
Returns the translucent color in screen's depth format.
This class contains the engine's configuration read either from the config file or from the command l...
static u_int8 mode()
Returns whether the current mode is fullscreen or windowed.
static u_int16 height()
Returns the height of the screen.