Beatmup
|
Layer having an image to render. More...
#include <scene.h>
Public Member Functions | |
bool | testPoint (float x, float y) const |
Tests if a given point falls in the layer. More... | |
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 | |
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... | |
void | render (RenderingContext &context) |
Protected Member Functions inherited from Beatmup::Scene::Layer | |
Layer (Type type) | |
Protected Attributes | |
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... | |
Friends | |
class | Scene |
class | SceneRenderer |
Additional Inherited Members | |
Public Types inherited from Beatmup::Scene::Layer | |
enum class | Type { SceneLayer = 0 , BitmapLayer , MaskedBitmapLayer , ShapedBitmapLayer , ShadedBitmapLayer } |
Layer having an image to render.
The image has a position and orientation with respect to the layer. This is expressed with an affine mapping applied on top of the layer mapping.
|
protected |
Definition at line 268 of file scene.cpp.
|
protected |
Definition at line 273 of file scene.cpp.
|
protected |
Configures current rendering program to render this layer.
Definition at line 279 of file scene.cpp.
|
protectedvirtual |
Reimplemented from Beatmup::Scene::Layer.
Reimplemented in Beatmup::Scene::ShadedBitmapLayer, Beatmup::Scene::ShapedBitmapLayer, and Beatmup::Scene::MaskedBitmapLayer.
Definition at line 291 of file scene.cpp.
|
virtual |
Tests if a given point falls in the layer.
Reimplemented from Beatmup::Scene::Layer.
Reimplemented in Beatmup::Scene::ShapedBitmapLayer, and Beatmup::Scene::MaskedBitmapLayer.
Definition at line 314 of file scene.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
protected |
inverse aspect ratio of what is rendered (set by SceneRenderer)
|
protected |
|
protected |
|
protected |