A class that provides a default implementation of IDrawObject. It prepares the way for an object to be rendered using OpenGL, providing pure virtual private functions that must be overridden by derived classes when the actual model data needs to be rendered.
DrawObject.h
A class that provides a default implementation of IDrawObject. | |
The DrawObject constructor. | |
Provides a standard list of colors that can be used by derived objects. | |
Returns a material that matches the passed in Material enumeration type. | |
Returns a material that matches the passed in ColorType definition. | |
Returns the GameObject this DrawObject references. | |
Returns whether this DrawObject can be deleted. | |
Returns the draw priority of this object. | |
Returns whether this IDrawObject can be selected. | |
Draws the object on the screen using OpenGL. | |
Allows derived classes to render their model in the OpenGL canvas. | |
Allows derived classes to draw their model with an outline around it. | |
Allows derived classes to draw their model with a selection outline around it. | |
Determines if this draw object be deleted. | |
A weak pointer to the GameObject this DrawObject draws. | |
The draw priority for this object. |
The DrawObject constructor. | |
Provides a standard list of colors that can be used by derived objects. | |
Returns a material that matches the passed in Material enumeration type. | |
Returns a material that matches the passed in ColorType definition. | |
Returns the GameObject this DrawObject references. | |
Returns whether this DrawObject can be deleted. | |
Returns the draw priority of this object. | |
Returns whether this IDrawObject can be selected. | |
Draws the object on the screen using OpenGL. | |
Allows derived classes to render their model in the OpenGL canvas. | |
Allows derived classes to draw their model with an outline around it. | |
Allows derived classes to draw their model with a selection outline around it. |
|
Returns whether this IDrawObject can be selected.
| origin | The origin point of the selection ray. |
| ray | The selection ray direction. |
| distance | Filled with the outgoing distance the object is from the ray origin, if the object is selectable. |
| id | Filled with the ougoing id of the selectable IGameObject, if the object is selectable. |
A bool that is true if the object can be selected and false if not.
|
|
| IGameObject *GetObject() const |
| virtual bool CanDelete() const |
| virtual wxInt32 GetPriority() const |
|
|
|
| virtual void RenderOutline() const=0 |
| virtual void RenderSelection() const=0 |
| mutable bool mDelete |
| const boost::weak_ptr<IGameObject> mpObject |
| wxInt32 mPriority |