Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CGeometryBlock Class Reference

#include <gblock.h>

List of all members.

Public Methods

 CGeometryBlock ()
void SetVerticesAreValid (bool valid)
void SetNormalsAreValid (bool valid)
void SetTexCoordsAreValid (bool valid)
void SetColorsAreValid (bool valid)
bool GetVerticesAreValid () const
bool GetNormalsAreValid () const
bool GetTexCoordsAreValid () const
bool GetColorsAreValid () const
int GetWordsPerVertex () const
int GetWordsPerNormal () const
int GetWordsPerTexCoord () const
int GetWordsPerColor () const
void SetWordsPerVertex (char num)
void SetWordsPerNormal (char num)
void SetWordsPerTexCoord (char num)
void SetWordsPerColor (char num)
void SetArrayType (ArrayType::tArrayType type)
ArrayType::tArrayType GetNewArrayType () const
ArrayType::tArrayType GetArrayType () const
void SetNumIndices (unsigned int num)
void SetIndices (const void *indices)
void SetIStripLengths (const void *strips)
const void * GetVertices (int strip=0)
const void * GetNormals (int strip=0)
const void * GetTexCoords (int strip=0)
const void * GetColors (int strip=0)
const void * GetIndices (int array)
const void * GetIStripLengths (int array)
void SetVertices (const void *verts)
void SetNormals (const void *norms)
void SetTexCoords (const void *texcoords)
void SetColors (const void *colors)
GLenum GetPrimType () const
void SetPrimType (GLenum type)
int GetNumNewVertices () const
int GetNumNewNormals () const
int GetNumNewTexCoords () const
int GetNumNewColors () const
int GetTotalVertices () const
void AddVertices (int num=1)
void AddNormals (int num=1)
void AddTexCoords (int num=1)
void AddColors (int num=1)
void SetNumVertsPerPrim (int num)
int GetNumVertsPerPrim ()
void SetNumVertsToRestartStrip (int num)
void SetStripsCanBeMerged (bool merge)
int GetNumStrips () const
int GetNumVertsToRestartStrip ()
 can the strips in this block be merged into the same render buffer and be rendered with a single giftag/prim setting? (triangle fans can't). More...

bool GetStripsCanBeMerged () const
int GetStripLength (int num) const
bool StripIsContinued (int num) const
int GetNumArrays () const
int GetArrayLength (int array) const
int GetNumIndices (int array) const
void ResetCurStrip ()
void ResetNew ()
void Reset ()
bool IsPending () const
bool MergeNew ()
void MakeNewValuesCurrent ()
void AdjustNewGeomPtrs (int offset)


Constructor & Destructor Documentation

CGeometryBlock::CGeometryBlock   [inline]
 

Definition at line 71 of file gblock.h.


Member Function Documentation

void CGeometryBlock::AddColors int    num = 1 [inline]
 

Definition at line 151 of file gblock.h.

Referenced by CImmGeomManager::Color(), CDListGeomManager::Color(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::AddNormals int    num = 1 [inline]
 

Definition at line 149 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CDListGeomManager::Normal(), and CImmGeomManager::Vertex().

void CGeometryBlock::AddTexCoords int    num = 1 [inline]
 

Definition at line 150 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CDListGeomManager::TexCoord(), and CImmGeomManager::Vertex().

void CGeometryBlock::AddVertices int    num = 1 [inline]
 

Definition at line 148 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::Vertex(), and CDListGeomManager::Vertex().

void CGeometryBlock::AdjustNewGeomPtrs int    offset [inline]
 

Definition at line 202 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), and CDListGeomManager::DrawArrays().

int CGeometryBlock::GetArrayLength int    array const [inline]
 

Definition at line 183 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays().

ArrayType::tArrayType CGeometryBlock::GetArrayType   const [inline]
 

Definition at line 98 of file gblock.h.

Referenced by CImmGeomManager::Flush().

const void* CGeometryBlock::GetColors int    strip = 0 [inline]
 

Definition at line 116 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), and CIndexedRenderer::DrawIndexedArrays().

bool CGeometryBlock::GetColorsAreValid   const [inline]
 

Definition at line 83 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().

const void* CGeometryBlock::GetIStripLengths int    array [inline]
 

Definition at line 124 of file gblock.h.

const void* CGeometryBlock::GetIndices int    array [inline]
 

Definition at line 120 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays().

ArrayType::tArrayType CGeometryBlock::GetNewArrayType   const [inline]
 

Definition at line 97 of file gblock.h.

const void* CGeometryBlock::GetNormals int    strip = 0 [inline]
 

Definition at line 108 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), and CIndexedRenderer::DrawIndexedArrays().

bool CGeometryBlock::GetNormalsAreValid   const [inline]
 

Definition at line 81 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), CIndexedRenderer::DrawIndexedArrays(), CLinearRenderer::DrawLinearArrays(), CLinearRenderer::GetCachePackets(), CIndexedRenderer::GetCachePackets(), and CDrawIndexedArraysCmd::Play().

int CGeometryBlock::GetNumArrays   const [inline]
 

Definition at line 182 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays(), and CDrawIndexedArraysCmd::Play().

int CGeometryBlock::GetNumIndices int    array const [inline]
 

Definition at line 186 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays().

int CGeometryBlock::GetNumNewColors   const [inline]
 

Definition at line 142 of file gblock.h.

Referenced by CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

int CGeometryBlock::GetNumNewNormals   const [inline]
 

Definition at line 140 of file gblock.h.

Referenced by CDListGeomManager::EndGeom().

int CGeometryBlock::GetNumNewTexCoords   const [inline]
 

Definition at line 141 of file gblock.h.

Referenced by CDListGeomManager::EndGeom().

int CGeometryBlock::GetNumNewVertices   const [inline]
 

Definition at line 139 of file gblock.h.

Referenced by CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

int CGeometryBlock::GetNumStrips   const [inline]
 

Definition at line 165 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock().

int CGeometryBlock::GetNumVertsPerPrim   [inline]
 

Definition at line 157 of file gblock.h.

Referenced by CLinearRenderer::DrawLinearArrays().

int CGeometryBlock::GetNumVertsToRestartStrip   [inline]
 

can the strips in this block be merged into the same render buffer and be rendered with a single giftag/prim setting? (triangle fans can't).

Definition at line 169 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock().

GLenum CGeometryBlock::GetPrimType   const [inline]
 

Definition at line 135 of file gblock.h.

int CGeometryBlock::GetStripLength int    num const [inline]
 

Definition at line 171 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), and GetArrayLength().

bool CGeometryBlock::GetStripsCanBeMerged   const [inline]
 

Definition at line 170 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock().

const void* CGeometryBlock::GetTexCoords int    strip = 0 [inline]
 

Definition at line 112 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), and CIndexedRenderer::DrawIndexedArrays().

bool CGeometryBlock::GetTexCoordsAreValid   const [inline]
 

Definition at line 82 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().

int CGeometryBlock::GetTotalVertices   const [inline]
 

Definition at line 144 of file gblock.h.

Referenced by CLinearRenderer::GetPacketQwordSize(), and CIndexedRenderer::GetPacketQwordSize().

const void* CGeometryBlock::GetVertices int    strip = 0 [inline]
 

Definition at line 104 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), and CIndexedRenderer::DrawIndexedArrays().

bool CGeometryBlock::GetVerticesAreValid   const [inline]
 

Definition at line 80 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), and CIndexedRenderer::DrawIndexedArrays().

int CGeometryBlock::GetWordsPerColor   const [inline]
 

Definition at line 89 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().

int CGeometryBlock::GetWordsPerNormal   const [inline]
 

Definition at line 87 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().

int CGeometryBlock::GetWordsPerTexCoord   const [inline]
 

Definition at line 88 of file gblock.h.

Referenced by CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().

int CGeometryBlock::GetWordsPerVertex   const [inline]
 

Definition at line 86 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock(), CIndexedRenderer::DrawIndexedArrays(), and CLinearRenderer::DrawLinearArrays().

bool CGeometryBlock::IsPending   const [inline]
 

Definition at line 199 of file gblock.h.

Referenced by CImmGeomManager::Flush(), CDListGeomManager::Flush(), and MergeNew().

void CGeometryBlock::MakeNewValuesCurrent  
 

Definition at line 157 of file gblock.cpp.

bool CGeometryBlock::MergeNew  
 

Definition at line 39 of file gblock.cpp.

void CGeometryBlock::Reset  
 

Definition at line 214 of file gblock.cpp.

Referenced by CDListGeomManager::BeginDListDef(), CGeometryBlock(), CImmGeomManager::Flush(), and CDListGeomManager::Flush().

void CGeometryBlock::ResetCurStrip  
 

Definition at line 203 of file gblock.cpp.

Referenced by Reset().

void CGeometryBlock::ResetNew  
 

Definition at line 189 of file gblock.cpp.

Referenced by Reset().

void CGeometryBlock::SetArrayType ArrayType::tArrayType    type [inline]
 

Definition at line 96 of file gblock.h.

Referenced by CImmGeomManager::BeginGeom(), CDListGeomManager::BeginGeom(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetColors const void *    colors [inline]
 

Definition at line 132 of file gblock.h.

Referenced by CImmGeomManager::BeginGeom(), CDListGeomManager::BeginGeom(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetColorsAreValid bool    valid [inline]
 

Definition at line 78 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetIStripLengths const void *    strips [inline]
 

Definition at line 102 of file gblock.h.

Referenced by CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetIndices const void *    indices [inline]
 

Definition at line 101 of file gblock.h.

Referenced by CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetNormals const void *    norms [inline]
 

Definition at line 130 of file gblock.h.

Referenced by CImmGeomManager::BeginGeom(), CDListGeomManager::BeginGeom(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetNormalsAreValid bool    valid [inline]
 

Definition at line 76 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetNumIndices unsigned int    num [inline]
 

Definition at line 100 of file gblock.h.

Referenced by CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetNumVertsPerPrim int    num [inline]
 

Definition at line 156 of file gblock.h.

void CGeometryBlock::SetNumVertsToRestartStrip int    num [inline]
 

Definition at line 162 of file gblock.h.

void CGeometryBlock::SetPrimType GLenum    type [inline]
 

Definition at line 136 of file gblock.h.

Referenced by CImmGeomManager::BeginGeom(), CDListGeomManager::BeginGeom(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetStripsCanBeMerged bool    merge [inline]
 

Definition at line 163 of file gblock.h.

void CGeometryBlock::SetTexCoords const void *    texcoords [inline]
 

Definition at line 131 of file gblock.h.

Referenced by CImmGeomManager::BeginGeom(), CDListGeomManager::BeginGeom(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetTexCoordsAreValid bool    valid [inline]
 

Definition at line 77 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetVertices const void *    verts [inline]
 

Definition at line 129 of file gblock.h.

Referenced by CImmGeomManager::BeginGeom(), CDListGeomManager::BeginGeom(), CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), and CDListGeomManager::DrawIndexedArrays().

void CGeometryBlock::SetVerticesAreValid bool    valid [inline]
 

Definition at line 75 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetWordsPerColor char    num [inline]
 

Definition at line 94 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetWordsPerNormal char    num [inline]
 

Definition at line 92 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetWordsPerTexCoord char    num [inline]
 

Definition at line 93 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

void CGeometryBlock::SetWordsPerVertex char    num [inline]
 

Definition at line 91 of file gblock.h.

Referenced by CImmGeomManager::DrawArrays(), CDListGeomManager::DrawArrays(), CImmGeomManager::DrawIndexedArrays(), CDListGeomManager::DrawIndexedArrays(), CImmGeomManager::EndGeom(), and CDListGeomManager::EndGeom().

bool CGeometryBlock::StripIsContinued int    num const [inline]
 

Definition at line 175 of file gblock.h.

Referenced by CLinearRenderer::DrawBlock().


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