![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cDXTexture.h>
Public Member Functions | |
cDXTextureBase (PIXELS_t cx=0, PIXELS_t cy=0) | |
virtual | ~cDXTextureBase () |
STDMETHOD_ (cString, get_Name)() const =0 | |
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... | |
virtual HRESULT | DeleteDeviceObjects () |
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 | InitDeviceObjects (cDXDevice *pDXDev) |
virtual HRESULT | OnResetDeviceX () |
virtual HRESULT | OnLostDeviceX () |
UNITTEST_FRIEND (cDXBase) | |
Public Attributes | |
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 |
Protected Member Functions | |
HRESULT | UpdateFullOpaqueHint () |
Protected Attributes | |
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... | |
manage a DirectX ID3DTexture/IDirect3DTexture9. (may be file or created internally) A texture can be made of 1 or many MIP Mapped surfaces. cSurfaceBase Can be associated with a model or a sprite set.
|
virtual |
|
virtual |
Must release this.
Reimplemented from Gray3D::cDXBase.
Reimplemented in Gray3D::cXTextureFile, and Gray3D::cDXTexture.
ID3DTexture * Gray3D::cDXTextureBase::get_DXTexture | ( | ) |
Load on demand?
Load on demand ?
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
bool Gray3D::cDXTextureBase::GetDescSize | ( | SIZE * | pSize | ) |
The allocated size.
Get the allocated size m_SizeDesc.
|
inlinenoexcept |
|
inlinenoexcept |
|
pure virtual |
Implemented in Gray3D::cDXTexture, and Gray3D::cXTextureFile.
HRESULT Gray3D::cDXTextureBase::UpdateDescSize | ( | ) |
Filtering may change the actual size loaded from m_SizeOrig. ASSUME InitDeviceObjects calls this.
|
protected |
compute m_IsFullOpaque. its not so costly as it looks, since we've loaded/filtered whole texture already
|
inlinevirtual |
We can sometimes read the size before actually loading the image file.
Reimplemented in Gray3D::cXTextureFile.
|
protected |
alpha mask doesn't exist or is all ones. render this faster if assumed to be opaque. D3DFMT_X8R8G8B8 vs D3DFMT_A8R8G8B8
|
protected |
|
protected |
allocated size for the texture. may be rounded up to power of 2 (if TEXTURELOAD_FILTER)
cWinSize Gray3D::cDXTextureBase::m_SizeOrig |
PIXELS_t size i intended it to be, may not be allocated/aligned size. before TEXTURELOAD_FILTER.