Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J3DDrawBuffer Class Reference

#include <J3DDrawBuffer.h>

+ Collaboration diagram for J3DDrawBuffer:

Public Types

enum  EDrawType { DRAW_HEAD , DRAW_TAIL }
 
enum  ESortType {
  SORT_MAT , SORT_MAT_ANM , SORT_Z , SORT_MODEL ,
  SORT_INVALID , SORT_NON
}
 

Public Member Functions

 J3DDrawBuffer ()
 
 ~J3DDrawBuffer ()
 
void initialize ()
 
J3DError allocBuffer (u32)
 
void frameInit ()
 
int entryMatSort (J3DMatPacket *)
 
int entryMatAnmSort (J3DMatPacket *)
 
int entryZSort (J3DMatPacket *)
 
int entryModelSort (J3DMatPacket *)
 
int entryInvalidSort (J3DMatPacket *)
 
int entryNonSort (J3DMatPacket *)
 
int entryImm (J3DPacket *pPacket, u16 index)
 
void draw () const
 
void drawHead () const
 
void drawTail () const
 
u32 getEntryTableSize ()
 
void calcZRatio ()
 
void setNonSort ()
 
void setZSort ()
 
void setZMtx (MtxP mtx)
 

Public Attributes

J3DPacket ** mpBuf
 
u32 mBufSize
 
u32 mDrawType
 
u32 mSortType
 
f32 mZNear
 
f32 mZFar
 
f32 mZRatio
 
MtxP mpZMtx
 
J3DPacketmpCallBackPacket
 

Static Public Attributes

static sortFunc sortFuncTable [6]
 
static drawFunc drawFuncTable [2]
 
static int entryNum
 

Member Enumeration Documentation

◆ EDrawType

Enumerator
DRAW_HEAD 
DRAW_TAIL 

◆ ESortType

Enumerator
SORT_MAT 
SORT_MAT_ANM 
SORT_Z 
SORT_MODEL 
SORT_INVALID 
SORT_NON 

Constructor & Destructor Documentation

◆ J3DDrawBuffer()

J3DDrawBuffer::J3DDrawBuffer ( )
inline

◆ ~J3DDrawBuffer()

J3DDrawBuffer::~J3DDrawBuffer ( )

Member Function Documentation

◆ allocBuffer()

J3DError J3DDrawBuffer::allocBuffer ( u32  bufSize)

◆ calcZRatio()

void J3DDrawBuffer::calcZRatio ( )
inline

◆ draw()

void J3DDrawBuffer::draw ( ) const

◆ drawHead()

void J3DDrawBuffer::drawHead ( ) const

◆ drawTail()

void J3DDrawBuffer::drawTail ( ) const

◆ entryImm()

int J3DDrawBuffer::entryImm ( J3DPacket pPacket,
u16  index 
)

◆ entryInvalidSort()

int J3DDrawBuffer::entryInvalidSort ( J3DMatPacket i_packet)

◆ entryMatAnmSort()

int J3DDrawBuffer::entryMatAnmSort ( J3DMatPacket pMatPacket)

◆ entryMatSort()

int J3DDrawBuffer::entryMatSort ( J3DMatPacket pMatPacket)

◆ entryModelSort()

int J3DDrawBuffer::entryModelSort ( J3DMatPacket i_packet)

◆ entryNonSort()

int J3DDrawBuffer::entryNonSort ( J3DMatPacket i_packet)

◆ entryZSort()

int J3DDrawBuffer::entryZSort ( J3DMatPacket i_packet)

◆ frameInit()

void J3DDrawBuffer::frameInit ( )

◆ getEntryTableSize()

u32 J3DDrawBuffer::getEntryTableSize ( )
inline

◆ initialize()

void J3DDrawBuffer::initialize ( )

◆ setNonSort()

void J3DDrawBuffer::setNonSort ( )
inline

◆ setZMtx()

void J3DDrawBuffer::setZMtx ( MtxP  mtx)
inline

◆ setZSort()

void J3DDrawBuffer::setZSort ( )
inline

Member Data Documentation

◆ drawFuncTable

drawFunc J3DDrawBuffer::drawFuncTable
static
Initial value:
= {
}
void drawTail() const
Definition J3DDrawBuffer.cpp:231
void drawHead() const
Definition J3DDrawBuffer.cpp:219

◆ entryNum

int J3DDrawBuffer::entryNum
static

◆ mBufSize

u32 J3DDrawBuffer::mBufSize

◆ mDrawType

u32 J3DDrawBuffer::mDrawType

◆ mpBuf

J3DPacket** J3DDrawBuffer::mpBuf

◆ mpCallBackPacket

J3DPacket* J3DDrawBuffer::mpCallBackPacket

◆ mpZMtx

MtxP J3DDrawBuffer::mpZMtx

◆ mSortType

u32 J3DDrawBuffer::mSortType

◆ mZFar

f32 J3DDrawBuffer::mZFar

◆ mZNear

f32 J3DDrawBuffer::mZNear

◆ mZRatio

f32 J3DDrawBuffer::mZRatio

◆ sortFuncTable

sortFunc J3DDrawBuffer::sortFuncTable
static
Initial value:
= {
}
int entryMatSort(J3DMatPacket *)
Definition J3DDrawBuffer.cpp:54
int entryNonSort(J3DMatPacket *)
Definition J3DDrawBuffer.cpp:183
int entryMatAnmSort(J3DMatPacket *)
Definition J3DDrawBuffer.cpp:95
int entryZSort(J3DMatPacket *)
Definition J3DDrawBuffer.cpp:126
int entryModelSort(J3DMatPacket *)
Definition J3DDrawBuffer.cpp:157
int entryInvalidSort(J3DMatPacket *)
Definition J3DDrawBuffer.cpp:171

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