#include <C4Surface.h>
Public Member Functions | |
C4TexRef (int iSizeX, int iSizeY, int iFlags) | |
~C4TexRef () | |
bool | Lock () |
bool | LockForUpdate (C4Rect &rtUpdate) |
void | Unlock () |
bool | ClearRect (C4Rect &rtClear) |
bool | FillBlack () |
void | SetPix (int iX, int iY, DWORD v) |
Public Attributes | |
LOCKED_RECT | texLock |
unsigned int | texName |
int | iSizeX |
int | iSizeY |
bool | fIntLock |
int | iFlags |
C4Rect | LockSize |
Friends | |
class | C4TexMgr |
Definition at line 150 of file C4Surface.h.
C4TexRef::C4TexRef | ( | int | iSizeX, |
int | iSizeY, | ||
int | iFlags | ||
) |
Definition at line 637 of file C4Surface.cpp.
References C4SF_Unlocked, C4TexMgr, C4Draw::COLOR_DEPTH_BYTES, C4Draw::DeviceReady(), fIntLock, C4Rect::Hgt, iFlags, iSizeX, iSizeY, LockSize, _LOCKED_RECT::pBits, pDraw, _LOCKED_RECT::Pitch, pTexMgr, C4TexMgr::RegTex(), texLock, texName, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
C4TexRef::~C4TexRef | ( | ) |
Definition at line 669 of file C4Surface.cpp.
References fIntLock, _LOCKED_RECT::pBits, CStdGL::pCurrCtx, pDraw, pGL, pTexMgr, texLock, texName, and C4TexMgr::UnregTex().
bool C4TexRef::ClearRect | ( | C4Rect & | rtClear | ) |
Definition at line 781 of file C4Surface.cpp.
References C4Rect::Hgt, LockForUpdate(), SetPix(), C4Rect::Wdt, C4Rect::x, and C4Rect::y.
bool C4TexRef::FillBlack | ( | ) |
bool C4TexRef::Lock | ( | ) |
Definition at line 728 of file C4Surface.cpp.
References C4Draw::COLOR_DEPTH_BYTES, C4Rect::Hgt, iSizeX, iSizeY, LockSize, _LOCKED_RECT::pBits, CStdGL::pCurrCtx, pGL, _LOCKED_RECT::Pitch, texLock, texName, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by FillBlack(), and C4TexMgr::IntLock().
bool C4TexRef::LockForUpdate | ( | C4Rect & | rtUpdate | ) |
Definition at line 700 of file C4Surface.cpp.
References C4Draw::COLOR_DEPTH_BYTES, C4Rect::Hgt, iSizeX, iSizeY, LockSize, _LOCKED_RECT::pBits, _LOCKED_RECT::Pitch, texLock, Unlock(), C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by ClearRect().
|
inline |
Definition at line 172 of file C4Surface.h.
References LockSize, _LOCKED_RECT::pBits, _LOCKED_RECT::Pitch, texLock, C4Rect::x, and C4Rect::y.
Referenced by ClearRect(), and FillBlack().
void C4TexRef::Unlock | ( | ) |
Definition at line 754 of file C4Surface.cpp.
References C4SF_MipMap, fIntLock, C4Rect::Hgt, iFlags, LockSize, _LOCKED_RECT::pBits, CStdGL::pCurrCtx, pGL, CStdGL::pMainCtx, CStdGLCtx::Select(), texLock, texName, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by C4TexMgr::IntUnlock(), and LockForUpdate().
|
friend |
Definition at line 178 of file C4Surface.h.
Referenced by C4TexRef().
bool C4TexRef::fIntLock |
Definition at line 159 of file C4Surface.h.
Referenced by C4TexRef(), C4TexMgr::IntLock(), C4TexMgr::IntUnlock(), Unlock(), and ~C4TexRef().
int C4TexRef::iFlags |
Definition at line 160 of file C4Surface.h.
Referenced by C4TexRef(), and Unlock().
int C4TexRef::iSizeX |
Definition at line 157 of file C4Surface.h.
Referenced by C4Draw::BlitUnscaled(), C4TexRef(), FillBlack(), Lock(), and LockForUpdate().
int C4TexRef::iSizeY |
Definition at line 158 of file C4Surface.h.
Referenced by C4Draw::BlitUnscaled(), C4TexRef(), FillBlack(), Lock(), and LockForUpdate().
C4Rect C4TexRef::LockSize |
Definition at line 161 of file C4Surface.h.
Referenced by C4TexRef(), Lock(), LockForUpdate(), SetPix(), and Unlock().
LOCKED_RECT C4TexRef::texLock |
Definition at line 153 of file C4Surface.h.
Referenced by C4TexRef(), C4TexMgr::IntLock(), Lock(), LockForUpdate(), SetPix(), Unlock(), and ~C4TexRef().
unsigned int C4TexRef::texName |
Definition at line 155 of file C4Surface.h.
Referenced by C4TexRef(), C4ParticleChunk::Draw(), C4TexMgr::IntLock(), Lock(), CStdGL::PerformMultiTris(), CStdGL::PrepareMaterial(), Unlock(), and ~C4TexRef().