Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ww3dformat.cpp File Reference
#include "ww3dformat.h"
#include "vector4.h"
#include "wwdebug.h"
#include "targa.h"
#include "dx8wrapper.h"
#include "dx8caps.h"
#include <d3d8.h>

Go to the source code of this file.

Functions

void Get_WW3D_Format_Name (WW3DFormat format, StringClass &name)
 
void Get_WW3D_ZFormat_Name (WW3DZFormat format, StringClass &name)
 Get W3D depth stencil format string name.
 
unsigned char RGB_to_CIEY (Vector4 color)
 
void Vector4_to_Color (unsigned int *outc, const Vector4 &inc, const WW3DFormat format)
 
void Color_to_Vector4 (Vector4 *outc, const unsigned int inc, const WW3DFormat format)
 
void Get_WW3D_Format (WW3DFormat &dest_format, WW3DFormat &src_format, unsigned &src_bpp, const Targa &targa)
 
void Get_WW3D_Format (WW3DFormat &src_format, unsigned &src_bpp, const Targa &targa)
 
WW3DFormat Get_Valid_Texture_Format (WW3DFormat format, bool is_compression_allowed)
 
unsigned Get_Bytes_Per_Pixel (WW3DFormat format)
 
unsigned Get_Num_Depth_Bits (WW3DZFormat zformat)
 
unsigned Get_Num_Stencil_Bits (WW3DZFormat zformat)
 

Function Documentation

◆ Color_to_Vector4()

void Color_to_Vector4 ( Vector4 * outc,
const unsigned int inc,
const WW3DFormat format )

Definition at line 202 of file ww3dformat.cpp.

◆ Get_Bytes_Per_Pixel()

unsigned Get_Bytes_Per_Pixel ( WW3DFormat format)

Definition at line 393 of file ww3dformat.cpp.

◆ Get_Num_Depth_Bits()

unsigned Get_Num_Depth_Bits ( WW3DZFormat zformat)

Definition at line 415 of file ww3dformat.cpp.

◆ Get_Num_Stencil_Bits()

unsigned Get_Num_Stencil_Bits ( WW3DZFormat zformat)

Definition at line 436 of file ww3dformat.cpp.

◆ Get_Valid_Texture_Format()

WW3DFormat Get_Valid_Texture_Format ( WW3DFormat format,
bool is_compression_allowed )

Definition at line 311 of file ww3dformat.cpp.

◆ Get_WW3D_Format() [1/2]

void Get_WW3D_Format ( WW3DFormat & dest_format,
WW3DFormat & src_format,
unsigned & src_bpp,
const Targa & targa )

Definition at line 272 of file ww3dformat.cpp.

◆ Get_WW3D_Format() [2/2]

void Get_WW3D_Format ( WW3DFormat & src_format,
unsigned & src_bpp,
const Targa & targa )

Definition at line 283 of file ww3dformat.cpp.

◆ Get_WW3D_Format_Name()

void Get_WW3D_Format_Name ( WW3DFormat format,
StringClass & name )

Definition at line 69 of file ww3dformat.cpp.

◆ Get_WW3D_ZFormat_Name()

void Get_WW3D_ZFormat_Name ( WW3DZFormat format,
StringClass & name )

Get W3D depth stencil format string name.

06/27/02 KJM

Definition at line 105 of file ww3dformat.cpp.

◆ RGB_to_CIEY()

unsigned char RGB_to_CIEY ( Vector4 color)

Definition at line 128 of file ww3dformat.cpp.

◆ Vector4_to_Color()

void Vector4_to_Color ( unsigned int * outc,
const Vector4 & inc,
const WW3DFormat format )

Definition at line 134 of file ww3dformat.cpp.