Qubet  1.0
The ultimate QGL addicting videogame!
 All Classes Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
Skybox Class Reference

It is the Skybox Class. More...

#include <skybox.h>

Collaboration diagram for Skybox:
Collaboration graph

Public Member Functions

 Skybox (Skin *_skin, GLfloat _emissionFactor=0.6f, GLfloat _cubeSide=40.0f)
 Create a Skybox object. More...
 
 ~Skybox ()
 Safely destroy skybox object.
 
GLvoid setSkin (Skin *_skin)
 Set the Skybox Skin. More...
 
SkingetSkin ()
 Returns the Skybox Skin. More...
 
GLvoid setEmissionFactor (GLfloat _emissionFactor)
 Set the emission factor of the Skybox. More...
 
GLfloat getEmssionFactor ()
 Returns the emission factor of the Skybox. More...
 
GLvoid setCubeSide (GLfloat _cubeSide)
 Set the side of the Skybox cube. More...
 
GLfloat getCubeSide ()
 Returns the side of the Skybox cube. More...
 
GLvoid draw ()
 Draw the Skybox.
 

Private Attributes

Skinskin
 
QVector< GLfloat > emissionVector
 
QVector< GLfloat > disabledVector
 
GLfloat cubeSide
 

Detailed Description

It is the Skybox Class.

Version
1.0
Author
#34

Constructor & Destructor Documentation

Skybox::Skybox ( Skin _skin,
GLfloat  _emissionFactor = 0.6f,
GLfloat  _cubeSide = 40.0f 
)
explicit

Create a Skybox object.

Parameters
_skinis the skin to use for the Skybox.
_emissionFactoris the emission factor of the Skybox.
_cubeSideis the side of the Skybox cube.

Member Function Documentation

GLfloat Skybox::getCubeSide ( )

Returns the side of the Skybox cube.

Returns
the side of the Skybox cube.
GLfloat Skybox::getEmssionFactor ( )

Returns the emission factor of the Skybox.

Returns
the emission factor of the Skybox.
Skin * Skybox::getSkin ( )

Returns the Skybox Skin.

Returns
the Skybox Skin.
GLvoid Skybox::setCubeSide ( GLfloat  _cubeSide)

Set the side of the Skybox cube.

Parameters
_cubeSideis the side of the Skybox cube.
GLvoid Skybox::setEmissionFactor ( GLfloat  _emissionFactor)

Set the emission factor of the Skybox.

Parameters
_emissionFactoris the emission factor of the Skybox.
GLvoid Skybox::setSkin ( Skin _skin)

Set the Skybox Skin.

Parameters
_skinis the skin to use for the Skybox.

Member Data Documentation

GLfloat Skybox::cubeSide
private

It is the Skybox cube side length.

QVector<GLfloat> Skybox::disabledVector
private

It is the vector used to disable components in OGL.

QVector<GLfloat> Skybox::emissionVector
private

It is the Skybox emission vector.

Skin* Skybox::skin
private

It is the Skybox Skin.


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