25 #ifndef PEGASUS_SURFACE_H 26 #define PEGASUS_SURFACE_H 28 #include "common/rect.h" 29 #include "common/str.h" 31 #include "pegasus/elements.h" 32 #include "pegasus/types.h" 56 virtual void deallocateSurface();
57 virtual void shareSurface(
Surface *surface);
58 bool isSurfaceValid()
const {
return _surface != 0; }
65 void copyToCurrentPort()
const;
66 void copyToCurrentPortTransparent()
const;
68 void copyToCurrentPortTransparent(
const Common::Rect &)
const;
76 virtual void getImageFromPICTFile(
const Common::Path &fileName);
88 uint32 getGlowColor(uint32 color)
const;
89 bool isTransparent(uint32 color)
const;
100 virtual void setTransparent(
bool transparent) { _transparent = transparent; }
110 virtual void initFromPICTFile(
const Common::Path &fileName,
bool transparent =
false);
111 virtual void initFromPICTResource(
Common::MacResManager *resFork, uint16
id,
bool transparent =
false);
112 virtual void initFromMovieFrame(
Video::VideoDecoder *, TimeValue,
bool transparent =
false);
122 uint32 _referenceCount;
130 void initFromPICTFile(
const Common::Path &fileName,
bool transparent =
false)
override;
131 void initFromPICTResource(
Common::MacResManager *resFork, uint16
id,
bool transparent =
false)
override;
132 void initFromMovieFrame(
Video::VideoDecoder *, TimeValue,
bool transparent =
false)
override;
Definition: surface.h:115
Definition: macresman.h:125
Definition: elements.h:168
Definition: video_decoder.h:52
Definition: surface.h:105
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: elements.h:43
Definition: avi_frames.h:36
Definition: ai_action.h:33
Definition: surface.h:125