Public Member Functions | |
OSVideoSurface (CScreenManager *screenManager, DirectDrawSurface *surface) | |
OSVideoSurface (CScreenManager *screenManager, const CResourceKey &key, bool flag=false) | |
void | loadResource (const CResourceKey &key) override |
void | loadTarga (const CResourceKey &key) override |
void | loadJPEG (const CResourceKey &key) override |
void | loadTarga (const CString &name) override |
void | loadMovie (const CResourceKey &key, bool destroyFlag=false) override |
bool | lock () override |
void | unlock () override |
bool | hasSurface () override |
int | getWidth () override |
int | getHeight () override |
int | getPitch () override |
int | getBpp () override |
void | recreate (int width, int height, int bpp=16) override |
void | resize (int width, int height, int bpp=16) override |
void | detachSurface () override |
int | getPixelDepth () override |
uint16 | getPixel (const Point &pt) override |
void | setPixel (const Point &pt, uint pixel) override |
void | shiftColors () override |
void | clear () override |
void | playMovie (uint flags, CGameObject *obj) override |
void | playMovie (uint startFrame, uint endFrame, uint flags, CGameObject *obj) override |
void | playMovie (uint startFrame, uint endFrame, uint initialFrame, uint flags, CGameObject *obj) override |
void | stopMovie () override |
void | setMovieFrame (uint frameNumber) override |
void | addMovieEvent (int frameNumber, CGameObject *obj) override |
void | setMovieFrameRate (double rate) override |
const CMovieRangeInfoList * | getMovieRangeInfo () const override |
void | flipVertically (bool needsLock=true) override |
bool | loadIfReady () override |
bool | load () override |
void | transPixelate () override |
Graphics::ManagedSurface * | dupMovieTransparency () const override |
int | freeSurface () override |
uint16 * | getBasePtr (int x, int y) override |
Public Member Functions inherited from Titanic::CVideoSurface | |
CVideoSurface (CScreenManager *screenManager) | |
void | setSurface (CScreenManager *screenManager, DirectDrawSurface *surface) |
void | load (SimpleFile *file) override |
virtual bool | hasFrame () |
void | blitFrom (const Point &destPos, CVideoSurface *src, const Rect *srcRect=nullptr) |
void | blitFrom (const Point &destPos, const Graphics::Surface *src) |
void | setTransparencySurface (Graphics::ManagedSurface *surface) |
const Graphics::Surface * | getTransparencySurface () const |
uint16 * | getPixels () |
Graphics::ManagedSurface * | getRawSurface () |
uint | getTransparencyColor () |
void | copyPixel (uint16 *destP, const uint16 *srcP, byte alpha, const Graphics::PixelFormat &srcFormat, bool isAlpha) |
Public Member Functions inherited from Titanic::ListItem | |
void | save (SimpleFile *file, int indent) override |
Public Member Functions inherited from Titanic::CSaveableObject | |
virtual ClassDef * | getType () const |
bool | isInstanceOf (const ClassDef *classDef) const |
virtual void | saveHeader (SimpleFile *file, int indent) |
virtual void | saveFooter (SimpleFile *file, int indent) |
Additional Inherited Members | |
Static Public Member Functions inherited from Titanic::CVideoSurface | |
static void | setup () |
Static Public Member Functions inherited from Titanic::CSaveableObject | |
static void | initClassList () |
static void | freeClassList () |
static CSaveableObject * | createInstance (const Common::String &name) |
Public Attributes inherited from Titanic::CVideoSurface | |
CMovie * | _movie |
DirectDrawSurface * | _ddSurface |
bool | _fastBlitFlag |
bool | _flipVertically |
CResourceKey | _resourceKey |
TransparencyMode | _transparencyMode |
Public Attributes inherited from Titanic::ListItem | |
CLASSDEF | |
Static Public Attributes inherited from Titanic::CSaveableObject | |
static ClassDef * | _type |
Protected Attributes inherited from Titanic::CVideoSurface | |
CScreenManager * | _screenManager |
Graphics::ManagedSurface * | _rawSurface |
bool | _pendingLoad |
Graphics::ManagedSurface * | _transparencySurface |
DisposeAfterUse::Flag | _freeTransparencySurface |
int | _videoSurfaceNum |
bool | _hasFrame |
int | _lockCount |
Static Protected Attributes inherited from Titanic::CVideoSurface | |
static int | _videoSurfaceCounter |
|
overridevirtual |
Load the surface with the passed resource
Implements Titanic::CVideoSurface.
|
overridevirtual |
Loads a Targa image file specified by the resource key
Implements Titanic::CVideoSurface.
|
overridevirtual |
Loads a JPEG image file specified by the resource key
Implements Titanic::CVideoSurface.
|
overridevirtual |
Loads a Targa image file specified by the given name
Implements Titanic::CVideoSurface.
|
overridevirtual |
Loads a movie file specified by the resource key.
key | Resource key for movie to load |
destroyFlag | Immediately destroy movie after decoding first frame |
Implements Titanic::CVideoSurface.
|
overridevirtual |
Lock the surface for direct access to the pixels
Implements Titanic::CVideoSurface.
|
overridevirtual |
Unlocks the surface after prior calls to lock()
Implements Titanic::CVideoSurface.
|
overridevirtual |
Returns true if an underlying raw surface has been set
Implements Titanic::CVideoSurface.
|
overridevirtual |
Returns the width of the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Returns the height of the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Returns the pitch of the surface in bytes
Implements Titanic::CVideoSurface.
|
overridevirtual |
Returns the bytes per pixel of the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Recreates the surface with the designated size
Implements Titanic::CVideoSurface.
|
overridevirtual |
Resizes the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Detachs the underlying raw surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Returns the number of bytes per pixel in the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Gets the pixel at the specified position within the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Sets a pixel at a specified position within the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Shifts the colors of the surface.. maybe greys it out?
Implements Titanic::CVideoSurface.
|
overridevirtual |
Clears the entire surface to black
Implements Titanic::CVideoSurface.
|
overridevirtual |
Plays a movie, loading it from the specified _resource if not already loaded
Implements Titanic::CVideoSurface.
|
overridevirtual |
Plays a movie, loading it from the specified _resource if not already loaded
Implements Titanic::CVideoSurface.
|
overridevirtual |
Plays a movie, loading it from the specified _resource if not already loaded
Implements Titanic::CVideoSurface.
|
overridevirtual |
Stops any movie currently attached to the surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Sets the movie to the specified frame number
Implements Titanic::CVideoSurface.
|
overridevirtual |
Adds a movie playback event
Implements Titanic::CVideoSurface.
|
overridevirtual |
Set the movie frame rate
Implements Titanic::CVideoSurface.
|
overridevirtual |
Return any movie range info associated with the surface's movie
Implements Titanic::CVideoSurface.
|
overridevirtual |
Loads the surface's resource if there's one pending
Implements Titanic::CVideoSurface.
|
overridevirtual |
Loads the surface data based on the currently set resource key
Implements Titanic::CVideoSurface.
|
overridevirtual |
Does a replacement of transparent pixels on certain lines at regular intervals. This is totally weird
Implements Titanic::CVideoSurface.
|
overridevirtual |
Duplicates movie transparency surface
Implements Titanic::CVideoSurface.
|
overridevirtual |
Frees the underlying surface
Reimplemented from Titanic::CVideoSurface.
|
overridevirtual |
Get a pointer into the underlying surface
Implements Titanic::CVideoSurface.