![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtDebugDrawerGeometryMemory () | |
| Constructor. | |
| virtual | ~DtDebugDrawerGeometryMemory () |
| Destructor. | |
| virtual char * | encode (char *buffer)=0 |
| Encodes this shape geometry into a buffer. | |
| virtual const char * | decode (const char *buffer)=0 |
| Decodes this shape geometry from a buffer into this object. | |
| virtual int | getSize ()=0 |
| Gets the size this object would take in bytes were it encoded with encode(). | |
| virtual int | type ()=0 |
| Gets the type of this object. | |
Public Attributes | |
| DtDebugDrawerGeometryMemoryColor | myColor |
| The color of this geometry. | |
Constructor.
| virtual DtDebugDrawerGeometryMemory::~DtDebugDrawerGeometryMemory | ( | ) | [inline, virtual] |
Destructor.
| virtual char* DtDebugDrawerGeometryMemory::encode | ( | char * | buffer | ) | [pure virtual] |
Encodes this shape geometry into a buffer.
| buffer | pointer to a character buffer |
Implemented in DtDebugDrawerTriangleMemory, DtDebugDrawerLineMemory, and DtDebugDrawerSphereMemory.
| virtual const char* DtDebugDrawerGeometryMemory::decode | ( | const char * | buffer | ) | [pure virtual] |
Decodes this shape geometry from a buffer into this object.
This should only be called when it is certain that the the first set of data in the buffer is of this particular shape.
| buffer | Pointer to a character buffer that previously had encode() called on it. |
Implemented in DtDebugDrawerTriangleMemory, DtDebugDrawerLineMemory, and DtDebugDrawerSphereMemory.
| virtual int DtDebugDrawerGeometryMemory::getSize | ( | ) | [pure virtual] |
Gets the size this object would take in bytes were it encoded with encode().
Implemented in DtDebugDrawerTriangleMemory, DtDebugDrawerLineMemory, and DtDebugDrawerSphereMemory.
| virtual int DtDebugDrawerGeometryMemory::type | ( | ) | [pure virtual] |
Gets the type of this object.
The types are integer values based on the number of points it requires to draw the shape. A sphere is a single point, a line is two points, and a triangle is three points.
Implemented in DtDebugDrawerTriangleMemory, DtDebugDrawerLineMemory, and DtDebugDrawerSphereMemory.
The color of this geometry.
This member was intentionally left public for easier access to the values.