#include <Object.h>
Inherits Texture.
Inherited by Button, Field, and Unit.
Inheritance diagram for Object:
Public Member Functions | |
Object () | |
Standard constructor. | |
virtual | ~Object () |
Standard destructor. | |
virtual int | render (Vector3d p_pos, double p_deltasize=1.0) |
Renders the Object at the given position. | |
Public Attributes | |
double | size |
Holds the size of the Object. |
Definition at line 31 of file Object.h.
Object::Object | ( | ) |
Object::~Object | ( | ) | [virtual] |
int Object::render | ( | Vector3d | p_pos, | |
double | p_deltasize = 1.0 | |||
) | [virtual] |
Renders the Object at the given position.
p_pos | Position on the screen where the object should be rendered. | |
p_deltasize | Size multiplier. Default = 1.0 |
Reimplemented in Field.
Definition at line 38 of file Object.cpp.
References Texture::render(), size, Vector3d::x, Vector3d::y, and Vector3d::z.
Referenced by Interface::render(), and Field::render().
Here is the call graph for this function:
double Object::size |
Holds the size of the Object.
Definition at line 56 of file Object.h.
Referenced by Field::Field(), Unit::load(), Interface::load(), Object(), render(), Interface::render(), and Unit::settle().