![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cDXTexture.h>
Public Member Functions | |
cDXTexture (PIXELS_t nWidth, PIXELS_t nHeight, UINT nMipLevels, D3DFORMAT eFormat, DWORD dwUsage, D3DPOOL ePool=D3DPOOL_DEFAULT) | |
virtual | ~cDXTexture () |
STDMETHOD_ (cString, get_Name)() const override | |
virtual HRESULT | InitDeviceObjects (cDXDevice *pDXDev) |
virtual HRESULT | DeleteDeviceObjects () |
![]() | |
cDXTextureBase (PIXELS_t cx=0, PIXELS_t cy=0) | |
virtual | ~cDXTextureBase () |
virtual bool | UpdateOrigSize () |
PIXELS_t | get_OrigSizeX () const noexcept |
PIXELS_t | get_OrigSizeY () const noexcept |
cWinSize | get_OrigSize () |
bool | isLoaded () const noexcept |
ID3DTexture * | get_DXTexture () |
Load on demand? More... | |
HRESULT | UpdateDescSize () |
bool | GetDescSize (SIZE *pSize) |
The allocated size. More... | |
bool | IsFullOpaque () const noexcept |
![]() | |
cDXBase (cDXDevice *pDXDev=nullptr) noexcept | |
virtual | ~cDXBase () |
ID3DDevice * | get_D3DDev () const noexcept |
bool | isInitDevice () const noexcept |
bool | isLostDevice () const noexcept |
virtual HRESULT | OnResetDeviceX () |
virtual HRESULT | OnLostDeviceX () |
UNITTEST_FRIEND (cDXBase) | |
Protected Attributes | |
UINT | m_nMipLevels |
0 if D3DUSAGE_AUTOGENMIPMAP More... | |
D3DFORMAT | m_eFormat |
D3DFMT_X8R8G8B8. More... | |
DWORD | m_dwUsage |
D3DXCreateTexture D3DUSAGE_RENDERTARGET , mask. More... | |
D3DPOOL | m_ePool |
D3DPOOL_DEFAULT, D3DPOOL_SYSTEMMEM. More... | |
![]() | |
cIUnkPtr< ID3DTexture > | m_pDXTexture |
cWinSize | m_SizeDesc |
allocated size for the texture. may be rounded up to power of 2 (if TEXTURELOAD_FILTER) More... | |
bool | m_IsFullOpaque |
alpha mask doesn't exist or is all ones. render this faster if assumed to be opaque. D3DFMT_X8R8G8B8 vs D3DFMT_A8R8G8B8 More... | |
Friends | |
class | cDXSurface |
Additional Inherited Members | |
![]() | |
cWinSize | m_SizeOrig |
PIXELS_t size i intended it to be, may not be allocated/aligned size. before TEXTURELOAD_FILTER. More... | |
![]() | |
cDXDevice * | m_pDXDev |
What device is this attached to (or should be)? InitDeviceObjects() was called and DeleteDeviceObjects() was not. More... | |
cIUnkPtr< ID3DDevice > | m_pD3DDev |
![]() | |
HRESULT | UpdateFullOpaqueHint () |
DX texture not (normally) loaded from a file. (or cached by the texture manager?) Used for: Terrain Patch composite textures.
Gray3D::cDXTexture::cDXTexture | ( | PIXELS_t | nWidth, |
PIXELS_t | nHeight, | ||
UINT | nMipLevels, | ||
D3DFORMAT | eFormat, | ||
DWORD | dwUsage, | ||
D3DPOOL | ePool = D3DPOOL_DEFAULT |
||
) |
|
virtual |
|
virtual |
Reimplemented from Gray3D::cDXTextureBase.
Reimplemented from Gray3D::cDXBase.
|
inlineoverridevirtual |
Implements Gray3D::cDXTextureBase.
|
friend |
|
protected |
D3DXCreateTexture D3DUSAGE_RENDERTARGET , mask.
|
protected |
D3DFMT_X8R8G8B8.
|
protected |
D3DPOOL_DEFAULT, D3DPOOL_SYSTEMMEM.
|
protected |
0 if D3DUSAGE_AUTOGENMIPMAP