mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
mElite
QuadricObject.cpp
Go to the documentation of this file.
1
6
#include "
QuadricObject.h
"
7
8
QuadricObject::QuadricObject
(
void
) { }
9
10
QuadricObject::QuadricObject
( GLuint textureName ) :
GraphicsObject
( ) {
11
m_texture
= textureName;
12
}
13
14
QuadricObject::QuadricObject
(
float
r, GLuint textureName ) :
GraphicsObject
( r ) {
15
m_texture
= textureName;
16
}
17
18
QuadricObject::QuadricObject
(
Vector3
position,
float
r, GLuint textureName ) :
GraphicsObject
( position, r ) {
19
m_texture
= textureName;
20
}
21
22
QuadricObject::QuadricObject
(
float
x
,
float
y
,
float
z
,
float
r, GLuint textureName ) :
GraphicsObject
( x, y, z, r ) {
23
m_texture
= textureName;
24
}
25
26
27
QuadricObject::~QuadricObject
(
void
) {
28
}
29
30
Point4
QuadricObject::getColor
(
void
) {
31
return
m_color
;
32
}
33
34
GLuint
QuadricObject::getTexture
(
void
) {
35
return
m_texture
;
36
}
37
42
GLvoid
QuadricObject::setColor
(
Vector3
color ) {
43
m_color
.
x
= color.
x
;
44
m_color
.
y
= color.
y
;
45
m_color
.
z
= color.
z
;
46
}
47
54
GLvoid
QuadricObject::setColor
(
float
r,
float
g,
float
b ) {
55
m_color
.
x
= r;
56
m_color
.
y
= b;
57
m_color
.
z
= b;
58
}
59
67
GLvoid
QuadricObject::setColor
(
float
r,
float
g,
float
b,
float
a ) {
68
m_color
.
x
= r;
69
m_color
.
y
= b;
70
m_color
.
z
= b;
71
m_color
.
a
= a;
72
}
73
77
GLvoid
QuadricObject::setTexture
( GLuint texture ) {
78
m_texture
= texture;
79
}
Generated on Tue Oct 2 2012 14:38:38 for mElite by
1.8.2