ScummVM API documentation
Titanic::DirectDrawManager Class Reference

Public Member Functions

 DirectDrawManager (TitanicEngine *vm, bool windowed)
 
void initVideo (int width, int height, int bpp, int numBackSurfaces)
 
void initWindowed ()
 
void initFullScreen ()
 
DirectDrawSurfacecreateSurface (int w, int h, int bpp, int surfaceNum)
 

Public Attributes

DirectDraw _directDraw
 
DirectDrawSurface_mainSurface
 
DirectDrawSurface_backSurfaces [2]
 

Member Function Documentation

◆ initVideo()

void Titanic::DirectDrawManager::initVideo ( int  width,
int  height,
int  bpp,
int  numBackSurfaces 
)

Initializes video surfaces

Parameters
widthScreen width
heightScreen height
bppBits per pixel
numBackSurfacesNumber of back surfaces

◆ initWindowed()

void Titanic::DirectDrawManager::initWindowed ( )
inline

Initializes the surfaces in windowed mode

◆ initFullScreen()

void Titanic::DirectDrawManager::initFullScreen ( )

Initializes the surfaces for the screen

◆ createSurface()

DirectDrawSurface* Titanic::DirectDrawManager::createSurface ( int  w,
int  h,
int  bpp,
int  surfaceNum 
)

Create a surface


The documentation for this class was generated from the following file: