friend class Application
friend class DirectSurface
Surface()
Surface(unsigned w, unsigned h, int pixelformat=Pixelformat::ABGR8888)
Surface(const Surface& surf)
Surface(void* pixels, unsigned w, unsigned h, unsigned pitch, int pixelformat)
Surface* createChildSurface(const Rect& rect)
bool readFromXPM(char** data)
bool readFromHeader(char* header_data, unsigned w, unsigned h)
bool readFromFile(const std::string&)
bool load(const std::string& filename)
bool writeToFile(const std::string&)
bool write(const std::string& filename)
Surface& operator = (const Surface& surf)
void setPalette(const std::vector<Color>& pal)
bool empty() const
virtual int width() const
virtual int height() const
virtual int pitch() const
const Pixelformat& pixelformat() const
virtual bool convert(const Pixelformat& pixelformat, bool dither = true)
bool mirror()
bool scale(int new_width, int new_height)
bool scale(float n)
void setTransparency(bool transp)
void setTransColor(const Color& color)
const Color& transparentColor() const
void setAlpha(unsigned char alpha)
bool usesTransparency() const
bool hasAlphaChannel() const
void useRLEAcceleration(bool flag)
virtual Rect blit(Surface*) const
virtual Rect blit(Surface*, const Rect& dest) const
virtual Rect blit(Surface*, const Rect& dest, const Rect& src) const
virtual Rect scaledBlit(Surface*) const
virtual Rect scaledBlit(Surface*, const Rect& dest) const
virtual Rect scaledBlit(Surface*, const Rect& dest, const Rect& src) const
virtual Rect textureBlit(Surface*, const Point&, const Point&, const Point&, const Point&) const
virtual Rect textureBlit(Surface*, const Point&, const Point&, const Point&, const Point&, const Rect& src) const
void clear()
void clear(const Rect& r)
void fill(const Color&)
void fill(const Rect&, const Color&)
void* pixels()
const void* pixels() const
virtual void lock() const
virtual void unlock() const
void clearSurfaceData()
Pixelformat format
SDL_Surface* sdlSurface_
Color transCol_
bool transparent_
unsigned char alpha_
void writePixel(Uint32 pixeladdr, Uint32 pixel)
Uint32 readPixel(Uint32 pixeladdr)
void applyPalette()
void gatherPalette()
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de