Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
RoadType Class Reference

#include <W3DRoadBuffer.h>

Public Member Functions

 RoadType (void)
 
 ~RoadType (void)
 
void loadTexture (AsciiString path, Int id)
 
void applyTexture (void)
 
Int getStacking (void)
 
void setStacking (Int order)
 
Int getUniqueID (void)
 
DX8VertexBufferClassgetVB (void)
 
DX8IndexBufferClassgetIB (void)
 
Int getNumVertices (void)
 
void setNumIndices (Int num)
 
void setNumVertices (Int num)
 
Int getNumIndices (void)
 

Protected Attributes

TextureClassm_roadTexture
 Roads texture.
 
DX8VertexBufferClassm_vertexRoad
 Road vertex buffer.
 
DX8IndexBufferClassm_indexRoad
 indices defining a triangles for the road drawing.
 
Int m_numRoadVertices
 Number of vertices used in m_vertexRoad.
 
Int m_numRoadIndices
 Number of indices used in b_indexRoad;.
 
Int m_uniqueID
 ID of the road type in INI.
 
Bool m_isAutoLoaded
 
Int m_stackingOrder
 Order in the drawing. 0 drawn first, then 1 and so on.
 

Detailed Description

Definition at line 153 of file W3DRoadBuffer.h.

Constructor & Destructor Documentation

◆ RoadType()

RoadType::RoadType ( void )

Nulls index & vertex data.

Definition at line 139 of file W3DRoadBuffer.cpp.

◆ ~RoadType()

RoadType::~RoadType ( void )

Frees index & vertex data.

Definition at line 153 of file W3DRoadBuffer.cpp.

Member Function Documentation

◆ applyTexture()

void RoadType::applyTexture ( void )

Sets the W3D texture.

Definition at line 165 of file W3DRoadBuffer.cpp.

◆ getIB()

DX8IndexBufferClass * RoadType::getIB ( void )
inline

Definition at line 177 of file W3DRoadBuffer.h.

◆ getNumIndices()

Int RoadType::getNumIndices ( void )
inline

Definition at line 181 of file W3DRoadBuffer.h.

◆ getNumVertices()

Int RoadType::getNumVertices ( void )
inline

Definition at line 178 of file W3DRoadBuffer.h.

◆ getStacking()

Int RoadType::getStacking ( void )
inline

Definition at line 173 of file W3DRoadBuffer.h.

◆ getUniqueID()

Int RoadType::getUniqueID ( void )
inline

Definition at line 175 of file W3DRoadBuffer.h.

◆ getVB()

DX8VertexBufferClass * RoadType::getVB ( void )
inline

Definition at line 176 of file W3DRoadBuffer.h.

◆ loadTexture()

void RoadType::loadTexture ( AsciiString path,
Int ID )

Sets the W3D texture.

Todo
  • delay loading textures and only load textures referenced by map.

Definition at line 178 of file W3DRoadBuffer.cpp.

◆ setNumIndices()

void RoadType::setNumIndices ( Int num)
inline

Definition at line 179 of file W3DRoadBuffer.h.

◆ setNumVertices()

void RoadType::setNumVertices ( Int num)
inline

Definition at line 180 of file W3DRoadBuffer.h.

◆ setStacking()

void RoadType::setStacking ( Int order)
inline

Definition at line 174 of file W3DRoadBuffer.h.

Member Data Documentation

◆ m_indexRoad

DX8IndexBufferClass* RoadType::m_indexRoad
protected

indices defining a triangles for the road drawing.

Definition at line 160 of file W3DRoadBuffer.h.

◆ m_isAutoLoaded

Bool RoadType::m_isAutoLoaded
protected

Definition at line 164 of file W3DRoadBuffer.h.

◆ m_numRoadIndices

Int RoadType::m_numRoadIndices
protected

Number of indices used in b_indexRoad;.

Definition at line 162 of file W3DRoadBuffer.h.

◆ m_numRoadVertices

Int RoadType::m_numRoadVertices
protected

Number of vertices used in m_vertexRoad.

Definition at line 161 of file W3DRoadBuffer.h.

◆ m_roadTexture

TextureClass* RoadType::m_roadTexture
protected

Roads texture.

Definition at line 158 of file W3DRoadBuffer.h.

◆ m_stackingOrder

Int RoadType::m_stackingOrder
protected

Order in the drawing. 0 drawn first, then 1 and so on.

Definition at line 165 of file W3DRoadBuffer.h.

◆ m_uniqueID

Int RoadType::m_uniqueID
protected

ID of the road type in INI.

Definition at line 163 of file W3DRoadBuffer.h.

◆ m_vertexRoad

DX8VertexBufferClass* RoadType::m_vertexRoad
protected

Road vertex buffer.

Definition at line 159 of file W3DRoadBuffer.h.


The documentation for this class was generated from the following files: