ScummVM API documentation
Titanic::DirectDrawSurface Class Reference

Public Member Functions

void create (int w, int h, int bpp)
 
void create (Graphics::ManagedSurface *surface)
 
void free ()
 
int getSize () const
 
int getWidth () const
 
int getHeight () const
 
int getPitch () const
 
const Graphics::PixelFormatgetFormat ()
 
Graphics::ManagedSurfacelock (const Rect *bounds, int flags)
 
void unlock ()
 
void fill (const Rect *bounds, uint32 color)
 
void fillRect (Rect *rect, byte r, byte g, byte b)
 
void blit (const Rect &destRect, DirectDrawSurface *srcSurface, Rect &srcRect)
 
void blit (const Point &destPos, DirectDrawSurface *srcSurface, Rect *bounds)
 

Member Function Documentation

◆ create() [1/2]

void Titanic::DirectDrawSurface::create ( int  w,
int  h,
int  bpp 
)

Create a surface

◆ create() [2/2]

void Titanic::DirectDrawSurface::create ( Graphics::ManagedSurface surface)

Create a surface based on a passed surface

◆ free()

void Titanic::DirectDrawSurface::free ( )

Frees the surface

◆ getSize()

int Titanic::DirectDrawSurface::getSize ( ) const
inline

Return the size of the surface in ytes

◆ getWidth()

int Titanic::DirectDrawSurface::getWidth ( void  ) const
inline

Return the surface width

◆ getHeight()

int Titanic::DirectDrawSurface::getHeight ( void  ) const
inline

Return the surface width

◆ getPitch()

int Titanic::DirectDrawSurface::getPitch ( ) const
inline

Return the surface pitch

◆ getFormat()

const Graphics::PixelFormat& Titanic::DirectDrawSurface::getFormat ( )
inline

Return the surface's format

◆ lock()

Graphics::ManagedSurface* Titanic::DirectDrawSurface::lock ( const Rect bounds,
int  flags 
)

Lock the surface for access

◆ unlock()

void Titanic::DirectDrawSurface::unlock ( )

Unlocks the surface at the end of direct accesses

◆ fill()

void Titanic::DirectDrawSurface::fill ( const Rect bounds,
uint32  color 
)

Fills an area of the surfae with the specified color. If no bounds are passed, then the entire surface is filled

◆ fillRect()

void Titanic::DirectDrawSurface::fillRect ( Rect rect,
byte  r,
byte  g,
byte  b 
)

Fill an area with a specific color

◆ blit() [1/2]

void Titanic::DirectDrawSurface::blit ( const Rect destRect,
DirectDrawSurface srcSurface,
Rect srcRect 
)

Copy data from a source surfcae into this one

◆ blit() [2/2]

void Titanic::DirectDrawSurface::blit ( const Point destPos,
DirectDrawSurface srcSurface,
Rect bounds 
)

Copy data from a source surfcae into this one


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