OpenBarnyard
 
Loading...
Searching...
No Matches
TD3DAdapter::Mode::Device Class Reference

#include <TRenderAdapter_DX8.h>

Inheritance diagram for TD3DAdapter::Mode::Device:
TRenderAdapter::Mode::Device TNodeList< T >::TNode

Public Member Functions

virtual TRenderAdapter::ModeGetMode () const override
 
virtual TUINT32 GetDeviceIndex () const override
 
virtual const TCHARGetTypeString () const override
 
virtual TBOOL IsSoftware () const override
 
virtual TBOOL CanRenderWindowed () const override
 
virtual TBOOL SupportsHardwareTransfomations () const override
 
virtual TBOOL IsDepthStencilFormatSupported (TUINT32 a_iIndex) const override
 
virtual TBOOL SupportsPureDevice () const
 
void SetD3DCaps (const D3DCAPS8 &a_rCaps)
 
void SetOwnerMode (Mode *a_pMode)
 
void SetDeviceIndex (TUINT32 a_uiIndex)
 
TUINT32 GetD3DDeviceFlags () const
 
D3DCAPS8 & GetD3DCaps ()
 
const D3DCAPS8 & GetD3DCaps () const
 
- Public Member Functions inherited from TRenderAdapter::Mode::Device
 Device ()=default
 
virtual ~Device ()=default
 
- Public Member Functions inherited from TNodeList< T >::TNode
constexpr TNode ()
 
constexpr TNode (const TNode &a_rcNode)
 
 TNode (TNode &&a_rNode)
 
T * Next () const
 
T * Prev () const
 
void Remove ()
 
void SetList (TNodeList *list)
 
TNodeListGetList () const
 
TBOOL IsLinked () const
 

Public Attributes

friend TD3DAdapter
 
friend Mode
 

Static Public Attributes

static constexpr D3DDEVTYPE DEVICETYPES [NUMSUPPORTEDDEVICES]
 
static constexpr const TCHARDEVICETYPESSTRINGS [NUMSUPPORTEDDEVICES]
 
static constexpr D3DFORMAT DEPTHSTENCILFORMATS []
 
static constexpr TUINT32 NUMDEPTHSTENCILFORMATS = TARRAYSIZE( DEPTHSTENCILFORMATS )
 

Additional Inherited Members

- Protected Attributes inherited from TNodeList< T >::TNode
friend TNodeList
 
TNodeListm_pList
 
T * m_pNext
 
T * m_pPrev
 

Detailed Description

Definition at line 19 of file TRenderAdapter_DX8.h.

Member Function Documentation

◆ CanRenderWindowed()

TBOOL TD3DAdapter::Mode::Device::CanRenderWindowed ( ) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 280 of file TRenderAdapter_DX8.cpp.

281{
282 return m_bCanRenderWindowed;
283}

◆ GetD3DCaps() [1/2]

D3DCAPS8 & TD3DAdapter::Mode::Device::GetD3DCaps ( )
inline

Definition at line 61 of file TRenderAdapter_DX8.h.

61{ return m_Caps; }

◆ GetD3DCaps() [2/2]

const D3DCAPS8 & TD3DAdapter::Mode::Device::GetD3DCaps ( ) const
inline

Definition at line 62 of file TRenderAdapter_DX8.h.

62{ return m_Caps; }

◆ GetD3DDeviceFlags()

TUINT32 TD3DAdapter::Mode::Device::GetD3DDeviceFlags ( ) const
inline

Definition at line 59 of file TRenderAdapter_DX8.h.

59{ return m_eFlags; }

◆ GetDeviceIndex()

TUINT32 TD3DAdapter::Mode::Device::GetDeviceIndex ( ) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 262 of file TRenderAdapter_DX8.cpp.

263{
264 return m_uiDeviceIndex;
265}

◆ GetMode()

TRenderAdapter::Mode * TD3DAdapter::Mode::Device::GetMode ( ) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 256 of file TRenderAdapter_DX8.cpp.

257{
258 return m_pOwnerMode;
259}

◆ GetTypeString()

const TCHAR * TD3DAdapter::Mode::Device::GetTypeString ( ) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 268 of file TRenderAdapter_DX8.cpp.

269{
270 return DEVICETYPESSTRINGS[ m_uiDeviceIndex ];
271}
static constexpr const TCHAR * DEVICETYPESSTRINGS[NUMSUPPORTEDDEVICES]

◆ IsDepthStencilFormatSupported()

TBOOL TD3DAdapter::Mode::Device::IsDepthStencilFormatSupported ( TUINT32 a_iIndex) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 292 of file TRenderAdapter_DX8.cpp.

293{
294 return m_aSupportedDSFormats[ a_iIndex ];
295}

◆ IsSoftware()

TBOOL TD3DAdapter::Mode::Device::IsSoftware ( ) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 274 of file TRenderAdapter_DX8.cpp.

275{
276 return m_bIsSoftware;
277}

◆ SetD3DCaps()

void TD3DAdapter::Mode::Device::SetD3DCaps ( const D3DCAPS8 & a_rCaps)
inline

Definition at line 55 of file TRenderAdapter_DX8.h.

55{ m_Caps = a_rCaps; }

◆ SetDeviceIndex()

void TD3DAdapter::Mode::Device::SetDeviceIndex ( TUINT32 a_uiIndex)
inline

Definition at line 57 of file TRenderAdapter_DX8.h.

57{ m_uiDeviceIndex = a_uiIndex; }

◆ SetOwnerMode()

void TD3DAdapter::Mode::Device::SetOwnerMode ( Mode * a_pMode)
inline

Definition at line 56 of file TRenderAdapter_DX8.h.

56{ m_pOwnerMode = a_pMode; }

◆ SupportsHardwareTransfomations()

TBOOL TD3DAdapter::Mode::Device::SupportsHardwareTransfomations ( ) const
overridevirtual

Implements TRenderAdapter::Mode::Device.

Definition at line 286 of file TRenderAdapter_DX8.cpp.

287{
288 return m_bSupportsTransformation;
289}

◆ SupportsPureDevice()

TBOOL TD3DAdapter::Mode::Device::SupportsPureDevice ( ) const
virtual

Definition at line 298 of file TRenderAdapter_DX8.cpp.

299{
300 return m_bSupportsPureDevice;
301}

Member Data Documentation

◆ DEPTHSTENCILFORMATS

D3DFORMAT TD3DAdapter::Mode::Device::DEPTHSTENCILFORMATS[]
staticconstexpr
Initial value:
= {
D3DFMT_D16,
D3DFMT_D15S1,
D3DFMT_D24X8,
D3DFMT_D24S8,
D3DFMT_D32
}

Definition at line 35 of file TRenderAdapter_DX8.h.

35 {
36 D3DFMT_D16,
37 D3DFMT_D15S1,
38 D3DFMT_D24X8,
39 D3DFMT_D24S8,
40 D3DFMT_D32
41 };

◆ DEVICETYPES

D3DDEVTYPE TD3DAdapter::Mode::Device::DEVICETYPES[NUMSUPPORTEDDEVICES]
staticconstexpr
Initial value:
= {
D3DDEVTYPE_HAL,
D3DDEVTYPE_REF
}

Definition at line 25 of file TRenderAdapter_DX8.h.

25 {
26 D3DDEVTYPE_HAL,
27 D3DDEVTYPE_REF
28 };

◆ DEVICETYPESSTRINGS

const TCHAR* TD3DAdapter::Mode::Device::DEVICETYPESSTRINGS[NUMSUPPORTEDDEVICES]
staticconstexpr
Initial value:
= {
"HAL",
"REF"
}

Definition at line 30 of file TRenderAdapter_DX8.h.

30 {
31 "HAL",
32 "REF"
33 };

◆ Mode

friend TD3DAdapter::Mode::Device::Mode

Definition at line 23 of file TRenderAdapter_DX8.h.

◆ NUMDEPTHSTENCILFORMATS

TUINT32 TD3DAdapter::Mode::Device::NUMDEPTHSTENCILFORMATS = TARRAYSIZE( DEPTHSTENCILFORMATS )
staticconstexpr

Definition at line 43 of file TRenderAdapter_DX8.h.

◆ TD3DAdapter

friend TD3DAdapter::Mode::Device::TD3DAdapter

Definition at line 22 of file TRenderAdapter_DX8.h.


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