#include <Cube.h>
Inheritance diagram for TexturedCube:
Public Member Functions | |
TexturedCube (float size, GLuint texture_id, bool allow_lighting) | |
~TexturedCube () | |
void | Draw () |
double | GetBoundingRadius () |
BoundingBox | GetBoundingBox () |
Private Member Functions | |
TexturedCube () | |
void | ConstructDisplayList () |
Private Attributes | |
double | half_size |
GLuint | texture_id |
GLuint | list_id |
bool | allow_lighting |
A simple cube that displays the same texture on each side. Uses a display list for acceleration.
Definition at line 101 of file Cube.h.
|
Constructor: Brings the object into a consistent state.
|
|
Destructor. |
|
Hide the default constructor. |
|
Constructs a display list for the cube. |
|
Implementation of the Draw routine. Reimplemented from RawObject. |
|
Implementation of the GetBoundingBox routine. Reimplemented from RawObject. |
|
Implementation of the GetBoundingRadius routine. Reimplemented from RawObject. |
|
Is lighting allowed for drawing? |
|
Size of the cube divided by two. |
|
OpenGL identifier that specifies the display list to be called for drawing. |
|
OpenGL texture name identifying the texture that shall be used for drawing. |