mElite  1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QuadricObject.cpp
Go to the documentation of this file.
1 
6 #include "QuadricObject.h"
7 
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 
28 }
29 
31  return m_color;
32 }
33 
34 GLuint QuadricObject::getTexture( void ) {
35  return m_texture;
36 }
37 
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 }