Qubet  1.0
The ultimate QGL addicting videogame!
 All Classes Functions Variables Pages
skybox.h
1 // Qubet - Copyright (C) 2011
2 // Enrico Bacis
3 // Daniele Ciriello
4 
5 // Qubet is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 
19 #ifndef SKYBOX_H
20 #define SKYBOX_H
21 
22 #include "utilities.h"
23 
30 class Skybox
31 {
32 
33 public:
34 
42  explicit Skybox(Skin *_skin, GLfloat _emissionFactor = 0.6f, GLfloat _cubeSide = 40.0f);
43 
47  ~Skybox();
48 
54  GLvoid setSkin(Skin *_skin);
55 
61  Skin *getSkin();
62 
68  GLvoid setEmissionFactor(GLfloat _emissionFactor);
69 
75  GLfloat getEmssionFactor();
76 
82  GLvoid setCubeSide(GLfloat _cubeSide);
83 
89  GLfloat getCubeSide();
90 
94  GLvoid draw();
95 
96 private:
97 
99  QVector<GLfloat> emissionVector;
100  QVector<GLfloat> disabledVector;
101  GLfloat cubeSide;
102 };
103 
104 #endif // SKYBOX_H
QVector< GLfloat > disabledVector
Definition: skybox.h:100
GLfloat getCubeSide()
Returns the side of the Skybox cube.
Definition: skybox.cpp:78
It is the Skybox Class.
Definition: skybox.h:30
GLvoid setCubeSide(GLfloat _cubeSide)
Set the side of the Skybox cube.
Definition: skybox.cpp:73
It is the Skin Class.
Definition: skin.h:30
GLvoid setEmissionFactor(GLfloat _emissionFactor)
Set the emission factor of the Skybox.
Definition: skybox.cpp:56
Skin * getSkin()
Returns the Skybox Skin.
Definition: skybox.cpp:51
GLvoid setSkin(Skin *_skin)
Set the Skybox Skin.
Definition: skybox.cpp:46
GLvoid draw()
Draw the Skybox.
Definition: skybox.cpp:83
QVector< GLfloat > emissionVector
Definition: skybox.h:99
Skybox(Skin *_skin, GLfloat _emissionFactor=0.6f, GLfloat _cubeSide=40.0f)
Create a Skybox object.
Definition: skybox.cpp:21
~Skybox()
Safely destroy skybox object.
Definition: skybox.cpp:40
Skin * skin
Definition: skybox.h:98
GLfloat cubeSide
Definition: skybox.h:101
GLfloat getEmssionFactor()
Returns the emission factor of the Skybox.
Definition: skybox.cpp:68