39 std::map<int, Surface*> _frames;
48 void loadPck(
const std::string &pck,
const std::string &tab =
"");
50 void loadDat(
const std::string &filename);
62 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256);
63 std::map<int, Surface*> *getFrames();
void loadDat(const std::string &filename)
Loads an X-Com DAT image file.
Definition: SurfaceSet.cpp:169
void loadPck(const std::string &pck, const std::string &tab="")
Loads an X-Com set of PCK/TAB image files.
Definition: SurfaceSet.cpp:72
size_t getTotalFrames() const
Gets the total frames in the set.
Definition: SurfaceSet.cpp:269
Container of a set of surfaces.
Definition: SurfaceSet.h:35
Surface * addFrame(int i)
Creates a new surface and returns a pointer to it.
Definition: SurfaceSet.cpp:240
int getHeight() const
Gets the height of all frames.
Definition: SurfaceSet.cpp:259
SurfaceSet(int width, int height)
Crates a surface set with frames of the specified size.
Definition: SurfaceSet.cpp:32
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
Surface * getFrame(int i)
Gets a particular frame from the set.
Definition: SurfaceSet.cpp:226
int getWidth() const
Gets the width of all frames.
Definition: SurfaceSet.cpp:250
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets the surface set's palette.
Definition: SurfaceSet.cpp:280
~SurfaceSet()
Cleans up the surface set.
Definition: SurfaceSet.cpp:55
Definition: BaseInfoState.cpp:40