PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
CDList Class Reference
+ Collaboration diagram for CDList:

Public Member Functions

template<class CmdType >
CDListCmdGetNext (CmdType *cmd)
 
template<class CmdType >
void operator+= (CmdType cmd)
 
void Play ()
 
void Begin ()
 
void End ()
 
CDmaPacket & GetVertexBuf ()
 
CDmaPacket & GetNormalBuf ()
 
CDmaPacket & GetTexCoordBuf ()
 
CDmaPacket & GetColorBuf ()
 
void RegisterNewPacket (CVifSCDmaPacket *packet)
 

Private Attributes

CDmaPacket * VertexBuf
 
CDmaPacket * NormalBuf
 
CDmaPacket * TexCoordBuf
 
CDmaPacket * ColorBuf
 
CDListCmdBlockFirstCmdBlock
 
CDListCmdBlockCurCmdBlock
 
int NumRenderPackets
 
CVifSCDmaPacket * RenderPackets [kMaxNumRenderPackets]
 

Static Private Attributes

static const int kBufferMaxQwordLength = 16 * 1024
 
static const int kMaxNumRenderPackets = 512
 

Detailed Description

Definition at line 156 of file dlist.h.

Constructor & Destructor Documentation

◆ CDList()

CDList::CDList ( )

Definition at line 17 of file dlist.cpp.

◆ ~CDList()

CDList::~CDList ( )

Definition at line 28 of file dlist.cpp.

Member Function Documentation

◆ GetNext()

template<class CmdType >
CDListCmd * CDList::GetNext ( CmdType *  cmd)
inline

Definition at line 170 of file dlist.h.

◆ operator+=()

template<class CmdType >
void CDList::operator+= ( CmdType  cmd)
inline

Definition at line 176 of file dlist.h.

◆ Play()

void CDList::Play ( )
inline

Definition at line 189 of file dlist.h.

◆ Begin()

void CDList::Begin ( )

Definition at line 45 of file dlist.cpp.

◆ End()

void CDList::End ( )
inline

Definition at line 197 of file dlist.h.

◆ GetVertexBuf()

CDmaPacket & CDList::GetVertexBuf ( )

Definition at line 50 of file dlist.cpp.

◆ GetNormalBuf()

CDmaPacket & CDList::GetNormalBuf ( )

Definition at line 59 of file dlist.cpp.

◆ GetTexCoordBuf()

CDmaPacket & CDList::GetTexCoordBuf ( )

Definition at line 68 of file dlist.cpp.

◆ GetColorBuf()

CDmaPacket & CDList::GetColorBuf ( )

Definition at line 77 of file dlist.cpp.

◆ RegisterNewPacket()

void CDList::RegisterNewPacket ( CVifSCDmaPacket *  packet)
inline

Definition at line 208 of file dlist.h.

Field Documentation

◆ kBufferMaxQwordLength

const int CDList::kBufferMaxQwordLength = 16 * 1024
staticprivate

Definition at line 157 of file dlist.h.

◆ VertexBuf

CDmaPacket* CDList::VertexBuf
private

Definition at line 158 of file dlist.h.

◆ NormalBuf

CDmaPacket * CDList::NormalBuf
private

Definition at line 158 of file dlist.h.

◆ TexCoordBuf

CDmaPacket * CDList::TexCoordBuf
private

Definition at line 158 of file dlist.h.

◆ ColorBuf

CDmaPacket * CDList::ColorBuf
private

Definition at line 158 of file dlist.h.

◆ FirstCmdBlock

CDListCmdBlock* CDList::FirstCmdBlock
private

Definition at line 159 of file dlist.h.

◆ CurCmdBlock

CDListCmdBlock * CDList::CurCmdBlock
private

Definition at line 159 of file dlist.h.

◆ kMaxNumRenderPackets

const int CDList::kMaxNumRenderPackets = 512
staticprivate

Definition at line 160 of file dlist.h.

◆ NumRenderPackets

int CDList::NumRenderPackets
private

Definition at line 161 of file dlist.h.

◆ RenderPackets

CVifSCDmaPacket* CDList::RenderPackets[kMaxNumRenderPackets]
private

Definition at line 162 of file dlist.h.


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