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

Public Member Functions

 CTexManager (CGLContext &context)
 
void SetTexEnabled (bool yesNo)
 
bool GetTexEnabled () const
 
void GenTextures (GLsizei numNewTexNames, GLuint *newTexNames)
 
void BindTexture (GLuint texNameToBind)
 
void DeleteTextures (GLsizei numToDelete, const GLuint *texNames)
 
CMMTextureGetCurTexture () const
 
CMMTextureGetNamedTexture (GLuint tex) const
 
void UseCurTexture (CVifSCDmaPacket &renderPacket)
 
void SetTexMode (GS::tTexMode mode)
 
void SetCurTexParam (GLenum pname, GLint param)
 
void SetCurTexImage (tU128 *imagePtr, tU32 w, tU32 h, GS::tPSM psm)
 
void SetGsTexture (GS::CMemArea &area)
 
void SetCurClut (const void *clut, int numEntries)
 
void BeginDListDef ()
 
void EndDListDef ()
 

Private Member Functions

void IncCursor ()
 

Private Attributes

CGLContextGLContext
 
bool IsTexEnabled
 
bool InsideDListDef
 
CMMTextureTexNames [NumTexNames]
 
unsigned int Cursor
 
CMMTextureDefaultTex
 
CMMTextureCurTexture
 
CMMTextureLastTexSent
 
CMMClutCurClut
 
GS::tTexMode TexMode
 

Static Private Attributes

static const int NumTexNames = 512
 

Detailed Description

Definition at line 24 of file texture.h.

Constructor & Destructor Documentation

◆ CTexManager()

CTexManager::CTexManager ( CGLContext context)

Definition at line 24 of file texture.cpp.

◆ ~CTexManager()

CTexManager::~CTexManager ( )

Definition at line 42 of file texture.cpp.

Member Function Documentation

◆ IncCursor()

void CTexManager::IncCursor ( )
inlineprivate

Definition at line 38 of file texture.h.

◆ SetTexEnabled()

void CTexManager::SetTexEnabled ( bool  yesNo)

Definition at line 69 of file texture.cpp.

◆ GetTexEnabled()

bool CTexManager::GetTexEnabled ( ) const
inline

Definition at line 45 of file texture.h.

◆ GenTextures()

void CTexManager::GenTextures ( GLsizei  numNewTexNames,
GLuint *  newTexNames 
)

Definition at line 109 of file texture.cpp.

◆ BindTexture()

void CTexManager::BindTexture ( GLuint  texNameToBind)

Definition at line 171 of file texture.cpp.

◆ DeleteTextures()

void CTexManager::DeleteTextures ( GLsizei  numToDelete,
const GLuint *  texNames 
)

Definition at line 192 of file texture.cpp.

◆ GetCurTexture()

CMMTexture & CTexManager::GetCurTexture ( ) const
inline

Definition at line 51 of file texture.h.

◆ GetNamedTexture()

CMMTexture & CTexManager::GetNamedTexture ( GLuint  tex) const
inline

Definition at line 53 of file texture.h.

◆ UseCurTexture()

void CTexManager::UseCurTexture ( CVifSCDmaPacket &  renderPacket)

Definition at line 137 of file texture.cpp.

◆ SetTexMode()

void CTexManager::SetTexMode ( GS::tTexMode  mode)

Definition at line 99 of file texture.cpp.

◆ SetCurTexParam()

void CTexManager::SetCurTexParam ( GLenum  pname,
GLint  param 
)

Definition at line 222 of file texture.cpp.

◆ SetCurTexImage()

void CTexManager::SetCurTexImage ( tU128 *  imagePtr,
tU32  w,
tU32  h,
GS::tPSM  psm 
)

Definition at line 279 of file texture.cpp.

◆ SetGsTexture()

void CTexManager::SetGsTexture ( GS::CMemArea &  area)

Definition at line 345 of file texture.cpp.

◆ SetCurClut()

void CTexManager::SetCurClut ( const void *  clut,
int  numEntries 
)

Definition at line 315 of file texture.cpp.

◆ BeginDListDef()

void CTexManager::BeginDListDef ( )
inline

Definition at line 69 of file texture.h.

◆ EndDListDef()

void CTexManager::EndDListDef ( )
inline

Definition at line 70 of file texture.h.

Field Documentation

◆ GLContext

CGLContext& CTexManager::GLContext
private

Definition at line 25 of file texture.h.

◆ IsTexEnabled

bool CTexManager::IsTexEnabled
private

Definition at line 27 of file texture.h.

◆ InsideDListDef

bool CTexManager::InsideDListDef
private

Definition at line 28 of file texture.h.

◆ NumTexNames

const int CTexManager::NumTexNames = 512
staticprivate

Definition at line 30 of file texture.h.

◆ TexNames

CMMTexture* CTexManager::TexNames[NumTexNames]
private

Definition at line 31 of file texture.h.

◆ Cursor

unsigned int CTexManager::Cursor
private

Definition at line 32 of file texture.h.

◆ DefaultTex

CMMTexture* CTexManager::DefaultTex
private

Definition at line 34 of file texture.h.

◆ CurTexture

CMMTexture * CTexManager::CurTexture
private

Definition at line 34 of file texture.h.

◆ LastTexSent

CMMTexture * CTexManager::LastTexSent
private

Definition at line 34 of file texture.h.

◆ CurClut

CMMClut* CTexManager::CurClut
private

Definition at line 35 of file texture.h.

◆ TexMode

GS::tTexMode CTexManager::TexMode
private

Definition at line 36 of file texture.h.


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