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
Planet.h
Go to the documentation of this file.
1
6
#pragma once
7
#include "
GlobalGL.h
"
8
#include "
Structures.h
"
// CullingPlanet
9
10
#include "
SpinningObject.h
"
// base class
11
#include "
QuadricObject.h
"
// base class
12
13
//#include "Frustum.h" // frustum object
14
15
class
Planet
:
16
public
SpinningObject
,
public
QuadricObject
{
17
public
:
18
Planet
(
float
planetRadius,
float
collisionRadius, GLuint textureName );
19
Planet
(
float
x
,
float
y
,
float
z
,
float
planetRadius, GLuint textureName );
20
Planet
(
float
x,
float
y,
float
z,
float
planetRadius,
float
collisionRadius, GLuint textureName );
21
~Planet
(
void
);
22
void
draw
(
void
);
23
float
getRotateSpeed
(
void
);
24
void
setRotateAngle
(
float
angle );
25
void
setRotateSpeed
(
float
speed );
26
void
setRadiusLineDrawing
(
bool
draw );
27
Vector3
getPos
();
28
//void setFrustum( Frustum *frustum );
29
//void setCulling( CullingPlanet cullType );
30
private
:
31
float
m_planetRadius;
32
float
m_rotateAngle;
33
float
m_rotateSpeed;
34
bool
m_drawRadiusLine;
35
//Frustum * m_frustum;
36
//CullingPlanet m_cullType;
37
};
Generated on Tue Oct 2 2012 14:38:38 for mElite by
1.8.2