Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
formconv.cpp File Reference
#include "formconv.h"

Go to the source code of this file.

Macros

#define HIGHEST_SUPPORTED_D3DFORMAT   D3DFMT_X8L8V8U8
 
#define HIGHEST_SUPPORTED_D3DZFORMAT   D3DFMT_D24X4S4
 

Functions

D3DFORMAT WW3DFormat_To_D3DFormat (WW3DFormat ww3d_format)
 
WW3DFormat D3DFormat_To_WW3DFormat (D3DFORMAT d3d_format)
 
D3DFORMAT WW3DZFormat_To_D3DFormat (WW3DZFormat ww3d_zformat)
 Depth Stencil W3D to D3D format conversion.
 
WW3DZFormat D3DFormat_To_WW3DZFormat (D3DFORMAT d3d_format)
 D3D to Depth Stencil W3D format conversion.
 
void Init_D3D_To_WW3_Conversion ()
 Init format conversion tables.
 

Variables

D3DFORMAT WW3DFormatToD3DFormatConversionArray [WW3D_FORMAT_COUNT]
 
D3DFORMAT WW3DZFormatToD3DFormatConversionArray [WW3D_ZFORMAT_COUNT]
 
WW3DFormat D3DFormatToWW3DFormatConversionArray [HIGHEST_SUPPORTED_D3DFORMAT+1]
 
WW3DZFormat D3DFormatToWW3DZFormatConversionArray [HIGHEST_SUPPORTED_D3DZFORMAT+1]
 

Macro Definition Documentation

◆ HIGHEST_SUPPORTED_D3DFORMAT

#define HIGHEST_SUPPORTED_D3DFORMAT   D3DFMT_X8L8V8U8

Definition at line 133 of file formconv.cpp.

◆ HIGHEST_SUPPORTED_D3DZFORMAT

#define HIGHEST_SUPPORTED_D3DZFORMAT   D3DFMT_D24X4S4

Definition at line 134 of file formconv.cpp.

Function Documentation

◆ D3DFormat_To_WW3DFormat()

WW3DFormat D3DFormat_To_WW3DFormat ( D3DFORMAT d3d_format)

Definition at line 150 of file formconv.cpp.

◆ D3DFormat_To_WW3DZFormat()

WW3DZFormat D3DFormat_To_WW3DZFormat ( D3DFORMAT d3d_format)

D3D to Depth Stencil W3D format conversion.

KJM

Definition at line 189 of file formconv.cpp.

◆ Init_D3D_To_WW3_Conversion()

void Init_D3D_To_WW3_Conversion ( )

Init format conversion tables.

06/27/02 KM Z Format support *

Definition at line 206 of file formconv.cpp.

◆ WW3DFormat_To_D3DFormat()

D3DFORMAT WW3DFormat_To_D3DFormat ( WW3DFormat ww3d_format)

Definition at line 142 of file formconv.cpp.

◆ WW3DZFormat_To_D3DFormat()

D3DFORMAT WW3DZFormat_To_D3DFormat ( WW3DZFormat ww3d_zformat)

Depth Stencil W3D to D3D format conversion.

KJM

Definition at line 173 of file formconv.cpp.

Variable Documentation

◆ D3DFormatToWW3DFormatConversionArray

WW3DFormat D3DFormatToWW3DFormatConversionArray[HIGHEST_SUPPORTED_D3DFORMAT+1]

Definition at line 139 of file formconv.cpp.

◆ D3DFormatToWW3DZFormatConversionArray

WW3DZFormat D3DFormatToWW3DZFormatConversionArray[HIGHEST_SUPPORTED_D3DZFORMAT+1]

Definition at line 140 of file formconv.cpp.

◆ WW3DFormatToD3DFormatConversionArray

D3DFORMAT WW3DFormatToD3DFormatConversionArray[WW3D_FORMAT_COUNT]
Initial value:
= {
D3DFMT_UNKNOWN,
D3DFMT_R8G8B8,
D3DFMT_A8R8G8B8,
D3DFMT_X8R8G8B8,
D3DFMT_R5G6B5,
D3DFMT_X1R5G5B5,
D3DFMT_A1R5G5B5,
D3DFMT_A4R4G4B4,
D3DFMT_R3G3B2,
D3DFMT_A8,
D3DFMT_A8R3G3B2,
D3DFMT_X4R4G4B4,
D3DFMT_A8P8,
D3DFMT_P8,
D3DFMT_L8,
D3DFMT_A8L8,
D3DFMT_A4L4,
D3DFMT_V8U8,
D3DFMT_L6V5U5,
D3DFMT_X8L8V8U8,
D3DFMT_DXT1,
D3DFMT_DXT2,
D3DFMT_DXT3,
D3DFMT_DXT4,
D3DFMT_DXT5
}

Definition at line 41 of file formconv.cpp.

◆ WW3DZFormatToD3DFormatConversionArray

D3DFORMAT WW3DZFormatToD3DFormatConversionArray[WW3D_ZFORMAT_COUNT]
Initial value:
=
{
D3DFMT_UNKNOWN,
D3DFMT_D16_LOCKABLE,
D3DFMT_D32,
D3DFMT_D15S1,
D3DFMT_D24S8,
D3DFMT_D16,
D3DFMT_D24X8,
D3DFMT_D24X4S4,
}

Definition at line 70 of file formconv.cpp.