#include <ThingCube.h>
Inherits Thing.
Inheritance diagram for ThingCube:
Public Member Functions | |
ThingCube (float size) | |
constructor | |
virtual | ~ThingCube (void) |
destructor | |
void | switchWireSolid () |
switches between solid and wire rendering of the cube | |
bool | isSolid () |
returns true if the cube is rendered solid | |
float | getSize () |
get the size of the cube | |
void | setSize (float new_size) |
set the size of the cube | |
void | render () |
write the corresponding openGL code to render the cube | |
Private Attributes | |
float | size |
bool | solid |
Cube Thing for the scenegraph. inherits from Thing.h and offers all methods to set the parameters for a cube
|
constructor
|
|
destructor
|
|
get the size of the cube
|
|
returns true if the cube is rendered solid
|
|
write the corresponding openGL code to render the cube
Reimplemented from Thing.
|
|
set the size of the cube
|
|
switches between solid and wire rendering of the cube
|
|
|
|
|