ComputerGraphik TU WIEN
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CubeMapObject Class Reference

#include <cubeMapObject.hpp>

Inheritance diagram for CubeMapObject:
SceneObject

Classes

class  EffectObject
 

Public Member Functions

 CubeMapObject (const std::string &name, Scene *scene=0, Model *model=0, const glm::mat4 &modelMatrix=glm::mat4(1.0f))
 
virtual ~CubeMapObject ()
 
void renderToCubeMap ()
 
void reset ()
 
void draw () const
 
- 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 bool animate (double time)
 
virtual void update (double deltaT)
 
virtual void setShader (Shader *val)
 

Private Member Functions

void setUpDepthTexture ()
 
void setUpColorTexture ()
 
void setViewMatrices ()
 

Private Attributes

GLint cubeTexWidth
 
GLint cubeTexHeight
 
GLuint frameBuffer
 
GLuint depthTexture
 
GLuint cubeTexture
 
GLenum cubeFaces [6]
 
int renderPasses
 
std::vector< glm::mat4 > viewMatrices
 
glm::vec4 position
 

Friends

class EffectObject
 

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
 

Constructor & Destructor Documentation

CubeMapObject::CubeMapObject ( const std::string &  name,
Scene scene = 0,
Model model = 0,
const glm::mat4 &  modelMatrix = glm::mat4(1.0f) 
)
CubeMapObject::~CubeMapObject ( )
virtual

Member Function Documentation

void CubeMapObject::draw ( ) const
virtual

Reimplemented from SceneObject.

void CubeMapObject::renderToCubeMap ( )
void CubeMapObject::reset ( )
virtual

Reimplemented from SceneObject.

void CubeMapObject::setUpColorTexture ( )
private
void CubeMapObject::setUpDepthTexture ( )
private
void CubeMapObject::setViewMatrices ( )
private

Friends And Related Function Documentation

friend class EffectObject
friend

Member Data Documentation

GLenum CubeMapObject::cubeFaces[6]
private
GLint CubeMapObject::cubeTexHeight
private
GLuint CubeMapObject::cubeTexture
private
GLint CubeMapObject::cubeTexWidth
private
GLuint CubeMapObject::depthTexture
private
GLuint CubeMapObject::frameBuffer
private
glm::vec4 CubeMapObject::position
private
int CubeMapObject::renderPasses
private
std::vector<glm::mat4> CubeMapObject::viewMatrices
private

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