|
Beatmup
|
Bitmap layer using another bitmap as a mask. More...
#include <scene.h>
Public Member Functions | |
| const AbstractBitmap * | getMask () const |
| void | setMask (AbstractBitmap *mask) |
| bool | testPoint (float x, float y) const |
| Tests if a given point falls in the layer. More... | |
Public Member Functions inherited from Beatmup::Scene::CustomMaskedBitmapLayer | |
| AffineMapping & | getMaskMapping () |
| const AffineMapping & | getMaskMapping () const |
| void | setMaskMapping (const AffineMapping &mapping) |
| color4i | getBackgroundColor () const |
| void | setBackgroundColor (color4i color) |
Public Member Functions inherited from Beatmup::Scene::BitmapLayer | |
| const AbstractBitmap * | getBitmap () const |
| void | setBitmap (AbstractBitmap *bitmap) |
| AffineMapping & | getBitmapMapping () |
| const AffineMapping & | getBitmapMapping () const |
| void | setBitmapMapping (const AffineMapping &mapping) |
| color4i | getModulationColor () const |
| void | setModulationColor (color4i color) |
Public Member Functions inherited from Beatmup::Scene::Layer | |
| Type | getType () const |
| const std::string & | getName () const |
| void | setName (const char *name) |
| AffineMapping & | getMapping () |
| const AffineMapping & | getMapping () const |
| void | setMapping (const AffineMapping &mapping) |
| virtual Layer * | getChild (float x, float y, unsigned int recursionDepth=0) const |
| Picks a child layer at given point, if any. More... | |
| bool | isVisible () const |
| Returns layer visibility flag. More... | |
| bool | isPhantom () const |
Returns true if the layer is ignored when searching a layer by point. More... | |
| void | setVisible (bool visible) |
| Sets layer visibility. More... | |
| void | setPhantom (bool phantom) |
| Makes/unmakes the layer "phantom". More... | |
| template<class LayerType > | |
| LayerType & | castTo () const |
Public Member Functions inherited from Beatmup::Object | |
| virtual | ~Object () |
Protected Member Functions | |
| MaskedBitmapLayer () | |
| void | render (RenderingContext &context) |
Protected Member Functions inherited from Beatmup::Scene::CustomMaskedBitmapLayer | |
| CustomMaskedBitmapLayer (Type type) | |
| void | configure (RenderingContext &context, GL::TextureHandler *content) |
Protected Member Functions inherited from Beatmup::Scene::BitmapLayer | |
| BitmapLayer () | |
| BitmapLayer (Type type) | |
| GL::TextureHandler * | resolveContent (RenderingContext &context) |
| void | configure (RenderingContext &context, GL::TextureHandler *content) |
| Configures current rendering program to render this layer. More... | |
Protected Member Functions inherited from Beatmup::Scene::Layer | |
| Layer (Type type) | |
Private Attributes | |
| AbstractBitmap * | mask |
| mask bitmap More... | |
Friends | |
| class | Scene |
| class | SceneRenderer |
Additional Inherited Members | |
Public Types inherited from Beatmup::Scene::Layer | |
| enum class | Type { SceneLayer = 0 , BitmapLayer , MaskedBitmapLayer , ShapedBitmapLayer , ShadedBitmapLayer } |
Protected Attributes inherited from Beatmup::Scene::CustomMaskedBitmapLayer | |
| AffineMapping | maskMapping |
| mask mapping w.r.t. the layer mapping More... | |
| color4i | bgColor |
| color to fill mask areas where the bitmap is not present More... | |
Protected Attributes inherited from Beatmup::Scene::BitmapLayer | |
| float | invAr |
| inverse aspect ratio of what is rendered (set by SceneRenderer) More... | |
| AbstractBitmap * | bitmap |
| content to display, used if the image source is set to BITMAP More... | |
| AffineMapping | bitmapMapping |
| bitmap mapping w.r.t. the layer mapping More... | |
| color4i | modulation |
| modulation color More... | |
Protected Attributes inherited from Beatmup::Scene::Layer | |
| AffineMapping | mapping |
| layer mapping More... | |
| bool | visible |
| layer visibility More... | |
| bool | phantom |
if true, layer is ignored by selection by point More... | |
|
protected |
Definition at line 338 of file scene.cpp.
|
protectedvirtual |
Reimplemented from Beatmup::Scene::BitmapLayer.
Definition at line 343 of file scene.cpp.
|
inline |
|
inline |
|
virtual |
Tests if a given point falls in the layer.
Reimplemented from Beatmup::Scene::BitmapLayer.
Definition at line 372 of file scene.cpp.
|
friend |
|
private |