|
| | Star (float planetRadius, float collisionRadius, GLuint textureName) |
| | Draws a star, which is basically only a planet with light. The default lightcolor is set to yellow, as the sun's color.
|
| |
| | Star (float x, float y, float z, float planetRadius, GLuint textureName) |
| | Draws a star, which is basically only a planet with light.
|
| |
| | Star (float x, float y, float z, float planetRadius, float collisionRadius, GLuint textureName) |
| |
| | ~Star (void) |
| | Destructor.
|
| |
| GLvoid | draw (GLvoid) |
| | Draws a star.
|
| |
| GLvoid | setLightColor (Vector3 lightColor) |
| |
| GLvoid | setLightColor (float r, float g, float b) |
| |
| GLvoid | setPos (GLfloat x, GLfloat y, GLfloat z) |
| |
| GLvoid | setPos (Vector3 position) |
| |
| | Planet (float planetRadius, float collisionRadius, GLuint textureName) |
| | Draws a planet with texture and spinning.
|
| |
| | Planet (float x, float y, float z, float planetRadius, GLuint textureName) |
| | Constructor wich sets the position and radius of the planet.
|
| |
| | Planet (float x, float y, float z, float planetRadius, float collisionRadius, GLuint textureName) |
| | Constructor wich sets the position and radius of the planet.
|
| |
| | ~Planet (void) |
| | Destructor.
|
| |
| void | draw (void) |
| | Draws a planet with texture and spinning.
|
| |
| float | getRotateSpeed (void) |
| | Get the current rotate speed.
|
| |
| void | setRotateAngle (float angle) |
| | Sets the rotate angle.
|
| |
| void | setRotateSpeed (float speed) |
| | Sets the speed that the planets use to rotate.
|
| |
| void | setRadiusLineDrawing (bool draw) |
| | Enables and disables if the line on which the planet moves should be drawn.
|
| |
| Vector3 | getPos () |
| | Get the current position of the center of the planet.
|
| |
| | SpinningObject () |
| |
| | SpinningObject (Vector3 position) |
| |
| | SpinningObject (GLfloat x, GLfloat y, GLfloat z) |
| |
| | ~SpinningObject (void) |
| |
| void | setAxis (Vector3 axis) |
| |
| void | setAxis (float x, float y, float z) |
| |
| void | setSpeed (float speed) |
| |
| void | spin (void) |
| |
| | GameObject (void) |
| | The constructor creates the object. The position is set to zero by default.
|
| |
| | GameObject (Vector3 position) |
| | The constructor creates the object and gives it a position in the scene.
|
| |
| | GameObject (float x, float y, float z) |
| | The constructor creates the object and gives it a position in the scene.
|
| |
| | ~GameObject (void) |
| | Destructor. Does nothing.
|
| |
| void | setPos (float x, float y, float z) |
| | Sets the current position.
|
| |
| void | setPos (Vector3 position) |
| | Sets the current position.
|
| |
| | QuadricObject (GLuint textureName) |
| |
| | QuadricObject (float r, GLuint textureName) |
| |
| | QuadricObject (Vector3 position, float r, GLuint textureName) |
| |
| | QuadricObject (float x, float y, float z, float r, GLuint textureName) |
| |
| | ~QuadricObject (void) |
| |
| Point4 | getColor (void) |
| |
| GLuint | getTexture (void) |
| |
| void | setColor (Vector3 color) |
| | Sets the color used for drawing.
|
| |
| void | setColor (float r, float g, float b) |
| | Sets the color used for drawing.
|
| |
| void | setColor (float r, float g, float b, float a) |
| | Sets the color used for drawing, allows setting of alpha channel.
|
| |
| void | setTexture (GLuint texture) |
| | Sets the texture used for drawing, if texturing is on.
|
| |
| | GraphicsObject (void) |
| | The constructor creates the object.
|
| |
| | GraphicsObject (GLfloat r) |
| | The constructor creates the object.
|
| |
| | GraphicsObject (Vector3 position, float r) |
| | Creates an graphical object.
|
| |
| | GraphicsObject (float x, float y, float z, float r) |
| | Creates a graphical object.
|
| |
| | ~GraphicsObject (void) |
| | Destructor.
|
| |
| float | getRadius (void) |
| | Returns the radius of the object, usable for view frustum culling.
|
| |
| float | getCollisionRadius (void) |
| | Returns the radius of the object, usable for collision detection.
|
| |
A Star is a special type of Planet that has supports lighting.
Definition at line 11 of file Star.h.