In file uta/programmer.doc:

namespace uta class DirectSurface : public Surface


Inheritance:


Public Methods

DirectSurface(int x, int y, int w, int h)
virtual ~DirectSurface()
const Rect& rect()
void refresh()
void update()
void updateRect(const Rect& rect)
update a part of this surface to the screen
void updateRect(int x, int y, int w, int h)
update a part of this surface to the screen
void beginModify()
void endModify()
virtual void covered(const Rect&)
virtual void exposed(const Rect&)

Protected Fields

Rect screen_rect
SDL_mutex* screen_access

Inherited from Surface:

Public Fields

friend class Painter
friend class Application

Public Methods

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

Protected Fields

Pixelformat format
SDL_Surface* sdlSurface_
Color transCol_
bool transparent_
unsigned char alpha_
bool RLEAccelerated_

Protected Methods

void clearSurfaceData()
void writePixel(Uint32 pixeladdr, Uint32 pixel)
Uint32 readPixel(Uint32 pixeladdr)
void applyPalette()
void gatherPalette()

Documentation

DirectSurface(int x, int y, int w, int h)

virtual ~DirectSurface()

const Rect& rect()

void refresh()

void update()

void updateRect(const Rect& rect)
update a part of this surface to the screen

void updateRect(int x, int y, int w, int h)
update a part of this surface to the screen

void beginModify()

void endModify()

virtual void covered(const Rect&)

virtual void exposed(const Rect&)

Rect screen_rect

SDL_mutex* screen_access


This class has no child classes.

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