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

#include <ddsfile.h>

Public Member Functions

 DDSFileClass (const char *name, unsigned reduction_factor)
 
 ~DDSFileClass ()
 
unsigned Get_Width (unsigned level) const
 
unsigned Get_Height (unsigned level) const
 
unsigned Get_Depth (unsigned level) const
 
unsigned Get_Full_Width () const
 
unsigned Get_Full_Height () const
 
unsigned Get_Full_Depth () const
 
unsigned long Get_Date_Time () const
 
unsigned Get_Mip_Level_Count () const
 
const unsigned char * Get_Memory_Pointer (unsigned level) const
 
unsigned Get_Level_Size (unsigned level) const
 
WW3DFormat Get_Format () const
 
DDSType Get_Type () const
 
void Copy_Level_To_Surface (unsigned level, IDirect3DSurface8 *d3d_surface, const Vector3 &hsv_shift=Vector3(0.0f, 0.0f, 0.0f))
 
void Copy_Level_To_Surface (unsigned level, WW3DFormat dest_format, unsigned dest_width, unsigned dest_height, unsigned char *dest_surface, unsigned dest_pitch, const Vector3 &hsv_shift=Vector3(0.0f, 0.0f, 0.0f))
 
const unsigned char * Get_CubeMap_Memory_Pointer (unsigned face, unsigned level) const
 
void Copy_CubeMap_Level_To_Surface (unsigned face, unsigned level, WW3DFormat dest_format, unsigned width, unsigned height, unsigned char *surf, unsigned pitch, const Vector3 &hsv_shift=Vector3(0.0f, 0.0f, 0.0f))
 
const unsigned char * Get_Volume_Memory_Pointer (unsigned level) const
 
void Copy_Volume_Level_To_Surface (unsigned level, unsigned depth, WW3DFormat dest_format, unsigned width, unsigned height, unsigned char *vol, unsigned row_pitch, unsigned slice_pitch, const Vector3 &hsv_shift=Vector3(0.0f, 0.0f, 0.0f))
 
unsigned Get_Pixel (unsigned level, unsigned x, unsigned y) const
 
bool Get_4x4_Block (unsigned char *dest_ptr, unsigned dest_pitch, WW3DFormat dest_format, unsigned level, unsigned source_x, unsigned source_y, const Vector3 &hsv_shift=Vector3(0.0f, 0.0f, 0.0f)) const
 
bool Load ()
 
bool Is_Available () const
 

Detailed Description

Definition at line 179 of file ddsfile.h.

Constructor & Destructor Documentation

◆ DDSFileClass()

DDSFileClass::DDSFileClass ( const char * name,
unsigned reduction_factor )

Definition at line 39 of file ddsfile.cpp.

◆ ~DDSFileClass()

DDSFileClass::~DDSFileClass ( )

Definition at line 188 of file ddsfile.cpp.

Member Function Documentation

◆ Copy_CubeMap_Level_To_Surface()

void DDSFileClass::Copy_CubeMap_Level_To_Surface ( unsigned face,
unsigned level,
WW3DFormat dest_format,
unsigned width,
unsigned height,
unsigned char * surf,
unsigned pitch,
const Vector3 & hsv_shift = Vector3(0.0f,0.0f,0.0f) )

Definition at line 527 of file ddsfile.cpp.

◆ Copy_Level_To_Surface() [1/2]

void DDSFileClass::Copy_Level_To_Surface ( unsigned level,
IDirect3DSurface8 * d3d_surface,
const Vector3 & hsv_shift = Vector3(0.0f,0.0f,0.0f) )

Definition at line 343 of file ddsfile.cpp.

◆ Copy_Level_To_Surface() [2/2]

void DDSFileClass::Copy_Level_To_Surface ( unsigned level,
WW3DFormat dest_format,
unsigned dest_width,
unsigned dest_height,
unsigned char * dest_surface,
unsigned dest_pitch,
const Vector3 & hsv_shift = Vector3(0.0f,0.0f,0.0f) )

Definition at line 377 of file ddsfile.cpp.

◆ Copy_Volume_Level_To_Surface()

void DDSFileClass::Copy_Volume_Level_To_Surface ( unsigned level,
unsigned depth,
WW3DFormat dest_format,
unsigned width,
unsigned height,
unsigned char * vol,
unsigned row_pitch,
unsigned slice_pitch,
const Vector3 & hsv_shift = Vector3(0.0f,0.0f,0.0f) )

Definition at line 696 of file ddsfile.cpp.

◆ Get_4x4_Block()

bool DDSFileClass::Get_4x4_Block ( unsigned char * dest_ptr,
unsigned dest_pitch,
WW3DFormat dest_format,
unsigned level,
unsigned source_x,
unsigned source_y,
const Vector3 & hsv_shift = Vector3(0.0f,0.0f,0.0f) ) const

Definition at line 1043 of file ddsfile.cpp.

◆ Get_CubeMap_Memory_Pointer()

const unsigned char * DDSFileClass::Get_CubeMap_Memory_Pointer ( unsigned face,
unsigned level ) const

Definition at line 517 of file ddsfile.cpp.

◆ Get_Date_Time()

unsigned long DDSFileClass::Get_Date_Time ( ) const
inline

Definition at line 213 of file ddsfile.h.

◆ Get_Depth()

unsigned DDSFileClass::Get_Depth ( unsigned level) const

Definition at line 211 of file ddsfile.cpp.

◆ Get_Format()

WW3DFormat DDSFileClass::Get_Format ( ) const
inline

Definition at line 218 of file ddsfile.h.

◆ Get_Full_Depth()

unsigned DDSFileClass::Get_Full_Depth ( ) const
inline

Definition at line 212 of file ddsfile.h.

◆ Get_Full_Height()

unsigned DDSFileClass::Get_Full_Height ( ) const
inline

Definition at line 211 of file ddsfile.h.

◆ Get_Full_Width()

unsigned DDSFileClass::Get_Full_Width ( ) const
inline

Definition at line 210 of file ddsfile.h.

◆ Get_Height()

unsigned DDSFileClass::Get_Height ( unsigned level) const

Definition at line 203 of file ddsfile.cpp.

◆ Get_Level_Size()

unsigned DDSFileClass::Get_Level_Size ( unsigned level) const

Definition at line 225 of file ddsfile.cpp.

◆ Get_Memory_Pointer()

const unsigned char * DDSFileClass::Get_Memory_Pointer ( unsigned level) const

Definition at line 219 of file ddsfile.cpp.

◆ Get_Mip_Level_Count()

unsigned DDSFileClass::Get_Mip_Level_Count ( ) const
inline

Definition at line 215 of file ddsfile.h.

◆ Get_Pixel()

unsigned DDSFileClass::Get_Pixel ( unsigned level,
unsigned x,
unsigned y ) const

Definition at line 913 of file ddsfile.cpp.

◆ Get_Type()

DDSType DDSFileClass::Get_Type ( ) const
inline

Definition at line 220 of file ddsfile.h.

◆ Get_Volume_Memory_Pointer()

const unsigned char * DDSFileClass::Get_Volume_Memory_Pointer ( unsigned level) const

Definition at line 691 of file ddsfile.cpp.

◆ Get_Width()

unsigned DDSFileClass::Get_Width ( unsigned level) const

Definition at line 195 of file ddsfile.cpp.

◆ Is_Available()

bool DDSFileClass::Is_Available ( ) const
inline

Definition at line 278 of file ddsfile.h.

◆ Load()

bool DDSFileClass::Load ( )

Definition at line 258 of file ddsfile.cpp.


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