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

#include <TileData.h>

Inherits RefCountClass.

Public Member Functions

 TileData (void)
 
UnsignedBytegetDataPtr (void)
 
void updateMips (void)
 
Bool hasRGBDataForWidth (Int width)
 
UnsignedBytegetRGBDataForWidth (Int width)
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Static Public Member Functions

static Int dataLen (void)
 
- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 

Public Attributes

ICoord2D m_tileLocationInTexture
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 

Static Protected Member Functions

static void doMip (UnsignedByte *pHiRes, Int hiRow, UnsignedByte *pLoRes)
 

Protected Attributes

UnsignedByte m_tileData [DATA_LEN_BYTES]
 
UnsignedByte m_tileDataMip32 [TILE_PIXEL_EXTENT_MIP1 *TILE_PIXEL_EXTENT_MIP1 *TILE_BYTES_PER_PIXEL]
 Mipped down copies of the tile data.
 
UnsignedByte m_tileDataMip16 [TILE_PIXEL_EXTENT_MIP2 *TILE_PIXEL_EXTENT_MIP2 *TILE_BYTES_PER_PIXEL]
 
UnsignedByte m_tileDataMip8 [TILE_PIXEL_EXTENT_MIP3 *TILE_PIXEL_EXTENT_MIP3 *TILE_BYTES_PER_PIXEL]
 
UnsignedByte m_tileDataMip4 [TILE_PIXEL_EXTENT_MIP4 *TILE_PIXEL_EXTENT_MIP4 *TILE_BYTES_PER_PIXEL]
 
UnsignedByte m_tileDataMip2 [TILE_PIXEL_EXTENT_MIP5 *TILE_PIXEL_EXTENT_MIP5 *TILE_BYTES_PER_PIXEL]
 
UnsignedByte m_tileDataMip1 [TILE_PIXEL_EXTENT_MIP6 *TILE_PIXEL_EXTENT_MIP6 *TILE_BYTES_PER_PIXEL]
 

Additional Inherited Members

- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Detailed Description

This class holds the bitmap data from the .tga texture files. It is used to create the D3D texture in the game and 3d windows, and to create DIB data for the 2d window.

Definition at line 68 of file TileData.h.

Constructor & Destructor Documentation

◆ TileData()

TileData::TileData ( void )

Definition at line 41 of file TileData.cpp.

Member Function Documentation

◆ dataLen()

static Int TileData::dataLen ( void )
inlinestatic

Definition at line 100 of file TileData.h.

◆ doMip()

void TileData::doMip ( UnsignedByte * pHiRes,
Int hiRow,
UnsignedByte * pLoRes )
staticprotected

doMip - generates the next mip level mipping pHiRes down to pLoRes. pLoRes is 1/2 the width of pHiRes, and both are square.

Definition at line 88 of file TileData.cpp.

◆ getDataPtr()

UnsignedByte * TileData::getDataPtr ( void )
inline

Definition at line 99 of file TileData.h.

◆ getRGBDataForWidth()

UnsignedByte * TileData::getRGBDataForWidth ( Int width)

Definition at line 65 of file TileData.cpp.

◆ hasRGBDataForWidth()

Bool TileData::hasRGBDataForWidth ( Int width)

Definition at line 53 of file TileData.cpp.

◆ updateMips()

void TileData::updateMips ( void )

Definition at line 77 of file TileData.cpp.

Member Data Documentation

◆ m_tileData

UnsignedByte TileData::m_tileData[DATA_LEN_BYTES]
protected

Definition at line 75 of file TileData.h.

◆ m_tileDataMip1

Definition at line 82 of file TileData.h.

◆ m_tileDataMip16

Definition at line 78 of file TileData.h.

◆ m_tileDataMip2

Definition at line 81 of file TileData.h.

◆ m_tileDataMip32

Mipped down copies of the tile data.

Definition at line 77 of file TileData.h.

◆ m_tileDataMip4

Definition at line 80 of file TileData.h.

◆ m_tileDataMip8

Definition at line 79 of file TileData.h.

◆ m_tileLocationInTexture

ICoord2D TileData::m_tileLocationInTexture

Definition at line 85 of file TileData.h.


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