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
GraphicsObject.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "GlobalGL.h"
9 #include "GameObject.h"
10 #include "Vectormath.h"
11 
13 
19 class GraphicsObject : virtual public GameObject {
20  // constructor and initialization
21 public:
22  GraphicsObject( void );
23  GraphicsObject( GLfloat r );
24  GraphicsObject( Vector3 position, float r );
25  GraphicsObject( float x, float y, float z, float r );
26  ~GraphicsObject( void );
27 
28  // stuff for graphical object, radius for collisions and drawing
29 public:
30  virtual void draw( void ) = 0;
31  float getRadius( void );
32  float getCollisionRadius( void );
33 private:
34  float m_radius;// radius of the object, used for collision detection
35 };