106 glRotatef(
_rotation[0], 1.0f, 0.0f, 0.0f);
107 glRotatef(
_rotation[1], 0.0f, 1.0f, 0.0f);
108 glRotatef(
_rotation[2], 0.0f, 0.0f, 1.0f);
GeometryObject(const VertexBuffer &vBuf, const IndexBuffer &iBuf)
Only render transparent parts.
void calculateDistance()
Calculate the object's distance.
#define TextureMan
Shortcut for accessing the texture manager.
double _distance
The distance of the object from the viewer.
The Aurora texture manager.
VertexBuffer _vertexBuffer
void unlockFrameIfVisible()
void lockFrameIfVisible()
void setPosition(float x, float y, float z)
Set the current position of the model.
void getPosition(float &x, float &y, float &z) const
Get the current position of the model.
void rotate(float x, float y, float z)
Rotate the model, relative to its current rotation.
Utility templates and functions.
void render(RenderPass pass)
Render the object.
Buffer containing vertex data.
void getRotation(float &x, float &y, float &z) const
Get the current rotation of the model.
An object that can be displayed by the graphics manager.
void draw(GLenum mode, const IndexBuffer &indexBuffer) const
Draw this IndexBuffer/VertexBuffer combination.
Buffer containing indices data.
void setRotation(float x, float y, float z)
Set the current rotation of the model.
void move(float x, float y, float z)
Move the model, relative to its current position.