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
SpinningObject.h
Go to the documentation of this file.
1
6
#pragma once
7
#include "
GlobalGL.h
"
8
#include "
GraphicsObject.h
"
9
#include "
Vectormath.h
"
10
#include "
Vector3.h
"
11
13
18
class
SpinningObject
:
19
virtual
public
GameObject
{
20
// constructors
21
public
:
22
SpinningObject
( );
23
SpinningObject
(
Vector3
position );
24
SpinningObject
( GLfloat
x
, GLfloat
y
, GLfloat
z
);
25
~SpinningObject
(
void
);
26
27
// rotating
28
public
:
29
void
setAxis
(
Vector3
axis );
30
void
setAxis
(
float
x,
float
y,
float
z );
31
void
setSpeed
(
float
speed );
32
void
spin
(
void
);
33
private
:
34
Vector3
m_axis;
35
float
m_speed;
36
};
Generated on Tue Oct 2 2012 14:38:38 for mElite by
1.8.2