|
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::PixelFormat & | getFormat () |
|
Graphics::ManagedSurface * | lock (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) |
|
◆ create() [1/2]
void Titanic::DirectDrawSurface::create |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
bpp |
|
) |
| |
◆ create() [2/2]
Create a surface based on a passed surface
◆ free()
void Titanic::DirectDrawSurface::free |
( |
| ) |
|
◆ getSize()
int Titanic::DirectDrawSurface::getSize |
( |
| ) |
const |
|
inline |
Return the size of the surface in ytes
◆ getWidth()
int Titanic::DirectDrawSurface::getWidth |
( |
void |
| ) |
const |
|
inline |
◆ getHeight()
int Titanic::DirectDrawSurface::getHeight |
( |
void |
| ) |
const |
|
inline |
◆ getPitch()
int Titanic::DirectDrawSurface::getPitch |
( |
| ) |
const |
|
inline |
◆ getFormat()
Return the surface's format
◆ lock()
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]
Copy data from a source surfcae into this one
◆ blit() [2/2]
Copy data from a source surfcae into this one
The documentation for this class was generated from the following file: