Logo Search packages:      
Sourcecode: fillets-ng version File versions

LayeredPicture Class Reference

#include <LayeredPicture.h>

Inheritance diagram for LayeredPicture:

Picture Drawable NoCopy

List of all members.

Detailed Description

Picture with two layers and color mask.

Definition at line 11 of file LayeredPicture.h.

Public Member Functions

void changePicture (const Path &file)
virtual void drawOn (SDL_Surface *screen)
int getH () const
Uint32 getMaskAt (const V2 &loc)
Uint32 getMaskAtWorld (const V2 &worldLoc)
Uint32 getNoMask () const
int getW () const
 LayeredPicture (const Path &bg_file, const V2 &loc, const Path &lowerLayer, const Path &colorMask)
void setActiveMask (Uint32 color)
void setLoc (const V2 &loc)
void setNoActive ()

Protected Attributes

V2 m_loc
SDL_Surface * m_surface

Private Attributes

Uint32 m_activeColor
SDL_Surface * m_colorMask
SDL_Surface * m_lowerLayer

Static Private Attributes

static const Uint32 MASK_NO = static_cast<Uint32>(-1)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index