In file uta/programmer.doc:

namespace uta class ScreenSurface : public Surface


Inheritance:


Public Methods

ScreenSurface(int w, int h, int bitsPerPixel, bool fullscreen, bool resizeable)
~ScreenSurface()
void update()
void update(const Rect& dest)
void flip()
bool doublebuffered() const
bool fullscreen() const
static bool setGamma(float red, float green, float blue)
static bool setGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue)

Protected Fields

bool fullscreen_
bool doublebuf_

Inherited from Surface:

Public Fields

friend class Painter
friend class Application
friend class DirectSurface

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

ScreenSurface(int w, int h, int bitsPerPixel, bool fullscreen, bool resizeable)

~ScreenSurface()

void update()

void update(const Rect& dest)

void flip()

bool doublebuffered() const

bool fullscreen() const

static bool setGamma(float red, float green, float blue)

static bool setGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue)

bool fullscreen_

bool doublebuf_


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