19 #ifndef OPENXCOM_SURFACESET_H
20 #define OPENXCOM_SURFACESET_H
42 std::map<int, Surface*> _frames;
51 void loadPck(
const std::string &pck,
const std::string &tab =
"");
53 void loadDat(
const std::string &filename);
65 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256);
66 std::map<int, Surface*> *getFrames();
void loadDat(const std::string &filename)
Loads an X-Com DAT image file.
Definition: SurfaceSet.cpp:158
void loadPck(const std::string &pck, const std::string &tab="")
Loads an X-Com set of PCK/TAB image files.
Definition: SurfaceSet.cpp:73
int getHeight() const
Gets the height of all frames.
Definition: SurfaceSet.cpp:248
size_t getTotalFrames() const
Gets the total frames in the set.
Definition: SurfaceSet.cpp:258
Container of a set of surfaces.
Definition: SurfaceSet.h:38
Surface * addFrame(int i)
Creates a new surface and returns a pointer to it.
Definition: SurfaceSet.cpp:229
SurfaceSet(int width, int height)
Crates a surface set with frames of the specified size.
Definition: SurfaceSet.cpp:33
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
Surface * getFrame(int i)
Gets a particular frame from the set.
Definition: SurfaceSet.cpp:215
int getWidth() const
Gets the width of all frames.
Definition: SurfaceSet.cpp:239
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets the surface set's palette.
Definition: SurfaceSet.cpp:269
~SurfaceSet()
Cleans up the surface set.
Definition: SurfaceSet.cpp:56