DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CTexture Class Reference

Public Member Functions

void Initialize ()
 

Public Attributes

short block
 
short width
 
short height
 
short bpp
 
char name [32]
 
u_long tex0
 
u_long tex1
 
u_int * image [4]
 
u_int * clut
 
int swizzled
 

Detailed Description

Definition at line 50 of file texture.hpp.

Constructor & Destructor Documentation

◆ CTexture()

CTexture::CTexture ( )

Definition at line 35 of file texture.cpp.

Member Function Documentation

◆ Initialize()

void CTexture::Initialize ( )

Definition at line 39 of file texture.cpp.

Member Data Documentation

◆ block

short CTexture::block

Texture block containing this texture.

Definition at line 52 of file texture.hpp.

◆ width

short CTexture::width

Texture width in pixels.

Definition at line 53 of file texture.hpp.

◆ height

short CTexture::height

Texture height in pixels.

Definition at line 54 of file texture.hpp.

◆ bpp

short CTexture::bpp

Bits per pixel.

Definition at line 55 of file texture.hpp.

◆ name

char CTexture::name[32]

Null-terminated texture name.

Definition at line 56 of file texture.hpp.

◆ tex0

u_long CTexture::tex0

GS TEX0 register value.

Definition at line 57 of file texture.hpp.

◆ tex1

u_long CTexture::tex1

GS TEX1 register value.

Definition at line 58 of file texture.hpp.

◆ image

u_int* CTexture::image[4]

Staged pixels of each mip level, or null past the last one.

Definition at line 59 of file texture.hpp.

◆ clut

u_int* CTexture::clut

Staged colour lookup table, or null for a true-colour texture.

Definition at line 60 of file texture.hpp.

◆ swizzled

int CTexture::swizzled

Whether the 8-bit pixels are stored in GS 32-bit page order.

Definition at line 61 of file texture.hpp.