ComputerGraphik TU WIEN
Public Member Functions | Private Attributes | List of all members
LegendBackground Class Reference

Renders a transparent image that can be used as background containing text. More...

#include <legend.hpp>

Inheritance diagram for LegendBackground:
SceneObject

Public Member Functions

 LegendBackground (Scene *_scene, Texture *_texture)
 
virtual ~LegendBackground ()
 
void draw ()
 
void setShader (Shader *_shader)
 
void renderBackground (float x, float y, float sx, float sy)
 
- Public Member Functions inherited from SceneObject
 SceneObject (std::shared_ptr< SceneObject > &effectParent, const glm::mat4 &modelMatrix=glm::mat4(1))
 
 SceneObject (const std::string &name, Scene *scene=0, Model *model=0, const glm::mat4 &modelMatrix=glm::mat4(1))
 
virtual ~SceneObject ()
 
ModelgetModel () const
 
ShadergetShader () const
 
glm::mat4 getModelMatrix () const
 
glm::mat4 getGlobalModelMatrix () const
 
std::string getName () const
 
std::shared_ptr< SceneObjectgetParent () const
 
void setAnimationTime (double time)
 
bool setAnimation (const Animation &anim)
 
bool delChild (size_t idx)
 
bool getChild (size_t idx, std::shared_ptr< SceneObject > &child) const
 
bool addChild (std::shared_ptr< SceneObject > &child)
 
bool remEffect (const std::string &name)
 
SceneObjectgetEffect (const std::string &name) const
 
bool addEffect (const std::string &name, std::unique_ptr< SceneObject > &effect)
 
bool doNotRender ()
 
bool getIsVolSun ()
 
virtual void reset ()
 
virtual void draw () const
 
virtual bool animate (double time)
 
virtual void update (double deltaT)
 

Private Attributes

GLuint hudTex
 
GLuint vboPositions
 
Texturetexture
 

Additional Inherited Members

- Public Types inherited from SceneObject
typedef std::vector< std::pair< double, glm::mat4 > > Animation
 
- Protected Attributes inherited from SceneObject
GLuint vao
 
Scenescene
 
Modelmodel
 
Shadershader
 
glm::mat4 modelMatrix
 
std::string name
 
std::weak_ptr< SceneObjectparent
 
std::vector< std::shared_ptr< SceneObject > > childs
 
std::map< std::string, std::unique_ptr< SceneObject > > effectChilds
 
size_t animIDX
 
Animation animation
 
bool norender
 
bool isVolSun
 

Detailed Description

Renders a transparent image that can be used as background containing text.

Author
Felix
Implementation
has a renderBackground function that does the rendering of the image onto the screen (as a quad). This class is used by the Legend to display the background

Constructor & Destructor Documentation

LegendBackground::LegendBackground ( Scene _scene,
Texture _texture 
)
LegendBackground::~LegendBackground ( )
virtual

Member Function Documentation

void LegendBackground::draw ( )
void LegendBackground::renderBackground ( float  x,
float  y,
float  sx,
float  sy 
)
void LegendBackground::setShader ( Shader _shader)
virtual

Reimplemented from SceneObject.

Member Data Documentation

GLuint LegendBackground::hudTex
private
Texture* LegendBackground::texture
private
GLuint LegendBackground::vboPositions
private

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