#include <DynamicLines.h>
Inheritance diagram for DynamicLines:
Public Member Functions | |
DynamicLines (OperationType opType=Ogre::RenderOperation::OT_LINE_STRIP) | |
Constructor - see setOperationType() for description of argument. | |
virtual | ~DynamicLines () |
void | createMaterial (Ogre::ColourValue LineColour) |
Modif: Cree un nouveau material pour cette ligne, et lui affecte une couleur. | |
void | setColour (Ogre::ColourValue LineColour) |
Modif: Change la couleur Ambiante de toutes les lignes. | |
void | addPoint (const Ogre::Vector3 &p) |
Add a point to the point list. | |
void | addPoint (Real x, Real y, Real z) |
Add a point to the point list. | |
void | setPoint (unsigned short index, const Vector3 &value) |
Change the location of an existing point in the point list. | |
const Vector3 & | getPoint (unsigned short index) const |
Return the location of an existing point in the point list. | |
unsigned short | getNumPoints (void) const |
Return the total number of points in the point list. | |
void | clear () |
Remove all points from the point list. | |
void | update () |
Call this to update the hardware buffer after making changes. | |
void | setOperationType (OperationType opType) |
OperationType | getOperationType () const |
Protected Member Functions | |
virtual void | createVertexDeclaration () |
Implementation DynamicRenderable, creates a simple vertex-only decl. | |
virtual void | fillHardwareBuffers () |
Implementation DynamicRenderable, pushes point list out to hardware memory. | |
Private Types | |
typedef Ogre::Vector3 | Vector3 |
typedef Ogre::Quaternion | Quaternion |
typedef Ogre::Camera | Camera |
typedef Ogre::Real | Real |
typedef Ogre::RenderOperation::OperationType | OperationType |
Private Attributes | |
std::vector< Vector3 > | mPoints |
bool | mDirty |
|
|
|
|
|
|
|
|
|
|
|
Constructor - see setOperationType() for description of argument.
|
|
|
|
Add a point to the point list.
|
|
Add a point to the point list.
|
|
Remove all points from the point list.
|
|
Modif: Cree un nouveau material pour cette ligne, et lui affecte une couleur.
|
|
Implementation DynamicRenderable, creates a simple vertex-only decl.
Implements DynamicRenderable. |
|
Implementation DynamicRenderable, pushes point list out to hardware memory.
Implements DynamicRenderable. |
|
Return the total number of points in the point list.
|
|
|
|
Return the location of an existing point in the point list.
|
|
Modif: Change la couleur Ambiante de toutes les lignes.
|
|
Set the type of operation to draw with.
|
|
Change the location of an existing point in the point list.
|
|
Call this to update the hardware buffer after making changes.
|
|
|
|
|