![]() |
VR-Forces 4.6.1 Class Documentation
|
A triangle definition to be stored in shared memory. More...

Public Member Functions | |
| DtDebugDrawerTriangleMemory () | |
| Constructor. | |
| ~DtDebugDrawerTriangleMemory () | |
| Destructor. | |
| virtual char * | encode (char *buffer) |
| Encodes this triangle into a buffer. | |
| virtual const char * | decode (const char *buffer) |
| Decodes a triangle from a buffer into this object. | |
| virtual int | getSize () |
| Gets the size this object would take in bytes were it encoded with encode(). | |
| virtual int | type () |
| Gets the type of this object. | |
Public Member Functions inherited from DtDebugDrawerGeometryMemory | |
| virtual | ~DtDebugDrawerGeometryMemory () |
| Destructor. | |
Public Attributes | |
| DtVector | myPoint1 |
| The first point of the triangle. | |
| DtVector | myPoint2 |
| The second point of the triangle. | |
| DtVector | myPoint3 |
| The third point of the triangle. | |
Public Attributes inherited from DtDebugDrawerGeometryMemory | |
| DtDebugDrawerGeometryMemoryColor | myColor |
| The color of this geometry. | |
A triangle definition to be stored in shared memory.
| DtDebugDrawerTriangleMemory::DtDebugDrawerTriangleMemory | ( | ) |
Constructor.
| DtDebugDrawerTriangleMemory::~DtDebugDrawerTriangleMemory | ( | ) |
Destructor.
Encodes this triangle into a buffer.
| buffer | pointer to a character buffer |
Implements DtDebugDrawerGeometryMemory.
Decodes a triangle 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. |
Implements DtDebugDrawerGeometryMemory.
|
virtual |
Gets the size this object would take in bytes were it encoded with encode().
Implements DtDebugDrawerGeometryMemory.
|
virtual |
Gets the type of this object.
Used to identify the object of this class.
Implements DtDebugDrawerGeometryMemory.
| DtVector DtDebugDrawerTriangleMemory::myPoint1 |
The first point of the triangle.
This member was intentionally left public for easier access to the value.
| DtVector DtDebugDrawerTriangleMemory::myPoint2 |
The second point of the triangle.
This member was intentionally left public for easier access to the value.
| DtVector DtDebugDrawerTriangleMemory::myPoint3 |
The third point of the triangle.
This member was intentionally left public for easier access to the value.