Beatmup
|
Bitmap layer using a custom shader. More...
#include <scene.h>
Public Member Functions | |
ImageShader * | getShader () const |
void | setShader (ImageShader *shader) |
Public Member Functions inherited from Beatmup::Scene::BitmapLayer | |
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 | |
ShadedBitmapLayer () | |
void | render (RenderingContext &context) |
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 | |
ImageShader * | shader |
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::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 |
|
protectedvirtual |
Reimplemented from Beatmup::Scene::BitmapLayer.
Definition at line 448 of file scene.cpp.
|
inline |
|
inline |
|
friend |
|
private |