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

engine.cpp File Reference

#include "engines/engine.h"
#include "engines/dialogs.h"
#include "engines/util.h"
#include "common/config-manager.h"
#include "common/events.h"
#include "common/file.h"
#include "common/system.h"
#include "common/str.h"
#include "common/error.h"
#include "common/list.h"
#include "common/memstream.h"
#include "common/scummsys.h"
#include "common/taskbar.h"
#include "common/textconsole.h"
#include "common/translation.h"
#include "common/singleton.h"
#include "backends/keymapper/keymapper.h"
#include "base/version.h"
#include "gui/gui-manager.h"
#include "gui/debugger.h"
#include "gui/dialog.h"
#include "gui/message.h"
#include "audio/mixer.h"
#include "graphics/cursorman.h"
#include "graphics/fontman.h"
#include "graphics/pixelformat.h"
#include "image/bmp.h"
#include "logo_data.h"
Include dependency graph for engine.cpp:

Go to the source code of this file.

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

#define FORBIDDEN_SYMBOL_EXCEPTION_getcwd

Functions

static void defaultOutputFormatter (char *dst, const char *src, size_t dstSize)
static void defaultErrorHandler (const char *msg)
 Common::DECLARE_SINGLETON (ChainedGamesManager)
void initCommonGFX ()
 Setup the backend's graphics mode.
void splashScreen ()
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, const Graphics::PixelFormat *format)
Graphics::PixelFormat findCompatibleFormat (const Common::List< Graphics::PixelFormat > &backend, const Common::List< Graphics::PixelFormat > &frontend)
 Determines the first matching format between two lists.
void initGraphics (int width, int height, const Common::List< Graphics::PixelFormat > &formatList)
void initGraphics (int width, int height)
 Sets up the backend's screen size and graphics mode.
void GUIErrorMessage (const Common::String &msg)
 Initializes graphics and shows error message.
void GUIErrorMessageFormat (const char *fmt,...)

Variables

Engineg_engine = 0
bool splash = false

Define Documentation

#define FORBIDDEN_SYMBOL_EXCEPTION_getcwd

Definition at line 23 of file engine.cpp.


Function Documentation

static void defaultErrorHandler ( const char *  msg  )  [static]

Definition at line 81 of file engine.cpp.

static void defaultOutputFormatter ( char *  dst,
const char *  src,
size_t  dstSize 
) [static]

Definition at line 73 of file engine.cpp.

Graphics::PixelFormat findCompatibleFormat ( const Common::List< Graphics::PixelFormat > &  backend,
const Common::List< Graphics::PixelFormat > &  frontend 
) [inline]

Determines the first matching format between two lists.

Parameters:
backend The higher priority list, meant to be a list of formats supported by the backend
frontend The lower priority list, meant to be a list of formats supported by the engine
Returns:
The first item on the backend list that also occurs on the frontend list or PixelFormat::createFormatCLUT8() if no matching formats were found.

Definition at line 366 of file engine.cpp.

void GUIErrorMessage ( const Common::String msg  ) 

Initializes graphics and shows error message.

Definition at line 389 of file engine.cpp.

void GUIErrorMessageFormat ( const char *  fmt,
  ... 
)

Definition at line 403 of file engine.cpp.

void initCommonGFX (  ) 

Setup the backend's graphics mode.

Definition at line 196 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,
const Common::List< Graphics::PixelFormat > &  formatList 
)

Definition at line 379 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.

void splashScreen (  ) 

Definition at line 223 of file engine.cpp.


Variable Documentation

Definition at line 69 of file engine.cpp.

bool splash = false

Definition at line 219 of file engine.cpp.



Generated on Sat Sep 14 2019 05:02:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge