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
Star.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include "Planet.h"
8 #include "Vectormath.h"
9 
11 class Star :
12  public Planet {
13 public:
14  Star( float planetRadius, float collisionRadius, GLuint textureName );
15  Star( float x, float y, float z, float planetRadius, GLuint textureName );
16  Star( float x, float y, float z, float planetRadius, float collisionRadius, GLuint textureName );
17  ~Star(void);
18  GLvoid draw( GLvoid );
19  GLvoid setLightColor( Vector3 lightColor );
20  GLvoid setLightColor( float r, float g, float b );
21  GLvoid setPos( GLfloat x, GLfloat y, GLfloat z );
22  GLvoid setPos( Vector3 position );
23 private:
24  Vector3 m_lightColor;
25  GLfloat m_lightPosition[4];
26 };