ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

engines/util.h File Reference

#include "common/array.h"
#include "common/scummsys.h"
#include "common/list.h"
#include "graphics/pixelformat.h"
#include "graphics/mode.h"
Include dependency graph for engines/util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void initCommonGFX ()
 Setup the backend's graphics mode.
void initGraphicsModes (const Graphics::ModeList &modes)
 Sends a list of graphics modes to the backend so it can make a decision about the best way to set up the display hardware.
void initGraphics (int width, int height)
 Sets up the backend's screen size and graphics mode.
void initGraphics (int width, int height, const Graphics::PixelFormat *format)
void initGraphics (int width, int height, const Common::List< Graphics::PixelFormat > &formatList)

Function Documentation

void initCommonGFX (  ) 

Setup the backend's graphics mode.

Definition at line 196 of file engine.cpp.

void initGraphics ( int  width,
int  height,
const Common::List< Graphics::PixelFormat > &  formatList 
)

Definition at line 379 of file engine.cpp.

void initGraphics ( int  width,
int  height,
const Graphics::PixelFormat format 
)

Definition at line 281 of file engine.cpp.

void initGraphics ( int  width,
int  height 
)

Sets up the backend's screen size and graphics mode.

Shows an various warnings on certain backend graphics transaction failures (aspect switch, fullscreen switch, etc.).

Errors out when backend is not able to switch to the specified mode.

Defaults to 256 color paletted mode if no graphics format is provided. Uses the backend's preferred format if graphics format pointer is NULL. Finds the best compatible format if a list of graphics formats is provided.

Definition at line 384 of file engine.cpp.

void initGraphicsModes ( const Graphics::ModeList modes  ) 

Sends a list of graphics modes to the backend so it can make a decision about the best way to set up the display hardware.

Engines that switch between different virtual screen sizes during a game should call this function prior to any call to initGraphics. Engines that use only a single screen size do not need to call this function.

Definition at line 277 of file engine.cpp.



Generated on Sat Mar 23 2019 05:05:23 for ResidualVM by doxygen 1.7.1
curved edge   curved edge