xoreos
0.0.5
|
A simple, rotating cube. More...
#include <cube.h>
Public Member Functions | |
Cube (const Common::UString &texture) | |
~Cube () | |
Public Member Functions inherited from Graphics::GLContainer | |
GLContainer () | |
~GLContainer () | |
void | rebuild () |
void | destroy () |
Public Member Functions inherited from Graphics::Queueable | |
Queueable () | |
virtual | ~Queueable () |
virtual bool | operator< (const Queueable &q) const |
Protected Member Functions | |
void | doRebuild () |
void | doDestroy () |
Protected Member Functions inherited from Graphics::Queueable | |
bool | isInQueue (QueueType queue) const |
void | addToQueue (QueueType queue) |
void | removeFromQueue (QueueType queue) |
void | lockQueue (QueueType queue) |
void | unlockQueue (QueueType queue) |
void | sortQueue (QueueType queue) |
Private Member Functions | |
void | applyTransformation (int n) |
void | applyTransformation (int n, glm::mat4 &m) |
void | setTexture () |
void | callList () |
void | newFrame () |
void | reloadTextures () |
Private Attributes | |
CubeSide * | _sides [6] |
bool | _firstTime |
uint32 | _lastRotateTime |
float | _rotation |
ListID | _list |
TextureHandle | _texture |
Friends | |
class | CubeSide |
Graphics::Aurora::Cube::Cube | ( | const Common::UString & | texture | ) |
Definition at line 82 of file cube.cpp.
References _sides, _texture, CubeSide, RequestMan, and TextureMan.
Graphics::Aurora::Cube::~Cube | ( | ) |
Definition at line 91 of file cube.cpp.
References _list, _sides, GfxMan, Graphics::kQueueGLContainer, and Graphics::Queueable::removeFromQueue().
|
private |
Definition at line 152 of file cube.cpp.
References _rotation.
Referenced by Graphics::Aurora::CubeSide::calculateDistance(), and Graphics::Aurora::CubeSide::render().
|
private |
Definition at line 187 of file cube.cpp.
References _rotation, and Common::deg2rad().
|
private |
Definition at line 226 of file cube.cpp.
References _list.
Referenced by Graphics::Aurora::CubeSide::render().
|
protectedvirtual |
|
protectedvirtual |
|
private |
Definition at line 140 of file cube.cpp.
References _lastRotateTime, _rotation, and EventMan.
Referenced by Graphics::Aurora::CubeSide::render().
|
private |
|
private |
Definition at line 222 of file cube.cpp.
References _texture, and TextureMan.
Referenced by Graphics::Aurora::CubeSide::render().
|
private |
Definition at line 79 of file cube.h.
Referenced by newFrame().
|
private |
Definition at line 82 of file cube.h.
Referenced by callList(), doDestroy(), doRebuild(), and ~Cube().
|
private |
Definition at line 80 of file cube.h.
Referenced by applyTransformation(), and newFrame().
|
private |
|
private |
Definition at line 84 of file cube.h.
Referenced by Cube(), Graphics::Aurora::CubeSide::render(), and setTexture().