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

Public Member Functions

 CMMTexture (GS::tContext context)
 
void SetImage (const GS::CMemArea &area)
 
void SetImage (tU128 *imagePtr, tU32 w, tU32 h, GS::tPSM psm)
 
void SetClut (const CMMClut &clut)
 
void ChangePsm (GS::tPSM psm)
 
void Load (bool waitForEnd=true)
 
void Use (bool waitForEnd=false)
 
void Load (CSCDmaPacket &packet)
 
void Load (CVifSCDmaPacket &packet)
 
void Use (CSCDmaPacket &packet)
 
void Use (CVifSCDmaPacket &packet)
 
void BindToSlot (GS::CMemSlot &slot)
 
void Free (void)
 

Private Attributes

GS::CMemArea * pImageMem
 
bool XferImage
 
bool IsResident
 

Detailed Description

Definition at line 103 of file texture.h.

Constructor & Destructor Documentation

◆ CMMTexture()

CMMTexture::CMMTexture ( GS::tContext  context)

Definition at line 361 of file texture.cpp.

◆ ~CMMTexture()

CMMTexture::~CMMTexture ( )

Definition at line 374 of file texture.cpp.

Member Function Documentation

◆ SetImage() [1/2]

void CMMTexture::SetImage ( const GS::CMemArea &  area)

Texture from the given gs memory area. This means that no texture will be uploaded; only the register settings will be sent to the gs.

Definition at line 403 of file texture.cpp.

◆ SetImage() [2/2]

void CMMTexture::SetImage ( tU128 *  imagePtr,
tU32  w,
tU32  h,
GS::tPSM  psm 
)

Use the given image in main ram as the texture.

Definition at line 382 of file texture.cpp.

◆ SetClut()

void CMMTexture::SetClut ( const CMMClut clut)
inline

Definition at line 115 of file texture.h.

◆ ChangePsm()

void CMMTexture::ChangePsm ( GS::tPSM  psm)

Definition at line 412 of file texture.cpp.

◆ Load() [1/3]

void CMMTexture::Load ( bool  waitForEnd = true)

Definition at line 440 of file texture.cpp.

◆ Use() [1/3]

void CMMTexture::Use ( bool  waitForEnd = false)

Definition at line 506 of file texture.cpp.

◆ Load() [2/3]

void CMMTexture::Load ( CSCDmaPacket &  packet)

Definition at line 464 of file texture.cpp.

◆ Load() [3/3]

void CMMTexture::Load ( CVifSCDmaPacket &  packet)

Definition at line 482 of file texture.cpp.

◆ Use() [2/3]

void CMMTexture::Use ( CSCDmaPacket &  packet)

Definition at line 512 of file texture.cpp.

◆ Use() [3/3]

void CMMTexture::Use ( CVifSCDmaPacket &  packet)

Definition at line 518 of file texture.cpp.

◆ BindToSlot()

void CMMTexture::BindToSlot ( GS::CMemSlot &  slot)

Definition at line 531 of file texture.cpp.

◆ Free()

void CMMTexture::Free ( void  )

Definition at line 525 of file texture.cpp.

Field Documentation

◆ pImageMem

GS::CMemArea* CMMTexture::pImageMem
private

Definition at line 104 of file texture.h.

◆ XferImage

bool CMMTexture::XferImage
private

Definition at line 105 of file texture.h.

◆ IsResident

bool CMMTexture::IsResident
private

Definition at line 106 of file texture.h.


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