#include <W3DRoadBuffer.h>
Public Member Functions | |
| RoadSegment (void) | |
| ~RoadSegment (void) | |
| void | SetVertexBuffer (VertexFormatXYZDUV1 *vb, Int numVertex) |
| void | SetIndexBuffer (UnsignedShort *ib, Int numIndex) |
| void | SetRoadSegInfo (TRoadSegInfo *pInfo) |
| void | GetRoadSegInfo (TRoadSegInfo *pInfo) |
| const SphereClass & | getBounds (void) |
| Int | GetNumVertex (void) |
| Int | GetNumIndex (void) |
| Int | GetVertices (VertexFormatXYZDUV1 *destination_vb, Int numToCopy) |
| Int | GetIndices (UnsignedShort *destination_ib, Int numToCopy, Int offset) |
| void | updateSegLighting (void) |
Public Attributes | |
| TRoadPt | m_pt1 |
| Drawing location pt1 to pt2. | |
| TRoadPt | m_pt2 |
| Drawing location to. | |
| Real | m_curveRadius |
| Radius if it is a curve. | |
| TCorner | m_type |
| Segment, or curve, or intersection. | |
| Real | m_scale |
| Scale. | |
| Real | m_widthInTexture |
| Width of the road in the texture. | |
| Int | m_uniqueID |
| Road type. | |
| Bool | m_visible |
Protected Attributes | |
| Int | m_numVertex |
| VertexFormatXYZDUV1 * | m_vb |
| Int | m_numIndex |
| UnsignedShort * | m_ib |
| TRoadSegInfo | m_info |
| SphereClass | m_bounds |
Definition at line 119 of file W3DRoadBuffer.h.
| RoadSegment::RoadSegment | ( | void | ) |
Nulls index & vertex data.
Definition at line 227 of file W3DRoadBuffer.cpp.
| RoadSegment::~RoadSegment | ( | void | ) |
Frees index & vertex data.
Definition at line 247 of file W3DRoadBuffer.cpp.
|
inline |
Definition at line 145 of file W3DRoadBuffer.h.
| Int RoadSegment::GetIndices | ( | UnsignedShort * | destination_ib, |
| Int | numToCopy, | ||
| Int | offset ) |
Copies index entries into destination_ib.
Definition at line 328 of file W3DRoadBuffer.cpp.
|
inline |
Definition at line 147 of file W3DRoadBuffer.h.
|
inline |
Definition at line 146 of file W3DRoadBuffer.h.
|
inline |
Definition at line 144 of file W3DRoadBuffer.h.
| Int RoadSegment::GetVertices | ( | VertexFormatXYZDUV1 * | destination_vb, |
| Int | numToCopy ) |
Copies vertex entries into destination_vb.
Definition at line 315 of file W3DRoadBuffer.cpp.
| void RoadSegment::SetIndexBuffer | ( | UnsignedShort * | ib, |
| Int | numIndex ) |
Allocates & sets the index entries.
Definition at line 296 of file W3DRoadBuffer.cpp.
|
inline |
Definition at line 143 of file W3DRoadBuffer.h.
| void RoadSegment::SetVertexBuffer | ( | VertexFormatXYZDUV1 * | vb, |
| Int | numVertex ) |
Allocates & sets the vertex entries.
Definition at line 268 of file W3DRoadBuffer.cpp.
| void RoadSegment::updateSegLighting | ( | void | ) |
Updates the diffuse lighting in the vertex buffer.
Definition at line 344 of file W3DRoadBuffer.cpp.
|
protected |
Definition at line 136 of file W3DRoadBuffer.h.
| Real RoadSegment::m_curveRadius |
Radius if it is a curve.
Definition at line 124 of file W3DRoadBuffer.h.
|
protected |
Definition at line 134 of file W3DRoadBuffer.h.
|
protected |
Definition at line 135 of file W3DRoadBuffer.h.
|
protected |
Definition at line 133 of file W3DRoadBuffer.h.
|
protected |
Definition at line 131 of file W3DRoadBuffer.h.
| TRoadPt RoadSegment::m_pt1 |
Drawing location pt1 to pt2.
Definition at line 122 of file W3DRoadBuffer.h.
| TRoadPt RoadSegment::m_pt2 |
Drawing location to.
Definition at line 123 of file W3DRoadBuffer.h.
| Real RoadSegment::m_scale |
Scale.
Definition at line 126 of file W3DRoadBuffer.h.
| TCorner RoadSegment::m_type |
Segment, or curve, or intersection.
Definition at line 125 of file W3DRoadBuffer.h.
| Int RoadSegment::m_uniqueID |
Road type.
Definition at line 128 of file W3DRoadBuffer.h.
|
protected |
Definition at line 132 of file W3DRoadBuffer.h.
| Bool RoadSegment::m_visible |
Definition at line 129 of file W3DRoadBuffer.h.
| Real RoadSegment::m_widthInTexture |
Width of the road in the texture.
Definition at line 127 of file W3DRoadBuffer.h.