PS2GL
OpenGL*-like API for the PS2
|
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 |
CMMTexture::CMMTexture | ( | GS::tContext | context | ) |
Definition at line 361 of file texture.cpp.
CMMTexture::~CMMTexture | ( | ) |
Definition at line 374 of file texture.cpp.
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.
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.
void CMMTexture::ChangePsm | ( | GS::tPSM | psm | ) |
Definition at line 412 of file texture.cpp.
void CMMTexture::Load | ( | bool | waitForEnd = true | ) |
Definition at line 440 of file texture.cpp.
void CMMTexture::Use | ( | bool | waitForEnd = false | ) |
Definition at line 506 of file texture.cpp.
void CMMTexture::Load | ( | CSCDmaPacket & | packet | ) |
Definition at line 464 of file texture.cpp.
void CMMTexture::Load | ( | CVifSCDmaPacket & | packet | ) |
Definition at line 482 of file texture.cpp.
void CMMTexture::Use | ( | CSCDmaPacket & | packet | ) |
Definition at line 512 of file texture.cpp.
void CMMTexture::Use | ( | CVifSCDmaPacket & | packet | ) |
Definition at line 518 of file texture.cpp.
void CMMTexture::BindToSlot | ( | GS::CMemSlot & | slot | ) |
Definition at line 531 of file texture.cpp.
void CMMTexture::Free | ( | void | ) |
Definition at line 525 of file texture.cpp.