diff options
Diffstat (limited to 'src/native/d3d/D3dDeviceInfo.hpp')
-rw-r--r-- | src/native/d3d/D3dDeviceInfo.hpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/native/d3d/D3dDeviceInfo.hpp b/src/native/d3d/D3dDeviceInfo.hpp index 4008011..ffb4587 100644 --- a/src/native/d3d/D3dDeviceInfo.hpp +++ b/src/native/d3d/D3dDeviceInfo.hpp @@ -24,12 +24,16 @@ public: // Hardware Rasterizer // Transform & Light Hardware Rasterizer // Reference Rasterizer - char deviceName[40]; // One of above name - D3DDEVTYPE deviceType; // D3DDEVTYPE_HAL or D3DDEVTYPE_REF + char deviceName[40]; // One of above name + D3DDEVTYPE deviceType; // D3DDEVTYPE_HAL or D3DDEVTYPE_REF BOOL desktopCompatible; // Can render in desktop mode BOOL fullscreenCompatible; // Can render in fullscreen mode // using current desktop mode setting - + //issue 135 - adding device info + char* deviceVendor; + char* deviceRenderer; + char* deviceVersion; + // each bitmask correspond to the support of // D3DMULTISAMPLE_i_SAMPLES type, i = 2...16 DWORD multiSampleSupport; @@ -43,11 +47,14 @@ public: // max z buffer depth support UINT maxZBufferDepthSize; - // Max vetex count support for each primitive + // Max vertex count support for each primitive DWORD maxVertexCount[GEO_TYPE_INDEXED_LINE_STRIP_SET+1]; + BOOL supportShaders11; BOOL isHardware; BOOL isHardwareTnL; + BOOL supportDepthBias; + BOOL supportRasterPresImmediate; BOOL canRenderWindowed; BOOL supportMipmap; BOOL texturePow2Only; @@ -66,19 +73,23 @@ public: DWORD maxActiveLights; DWORD maxPointSize; DWORD rangeFogEnable; - D3DRENDERSTATETYPE fogMode; + D3DRENDERSTATETYPE fogMode; int texMask; int maxAnisotropy; + BOOL supportStreamOffset; + D3dDeviceInfo(); ~D3dDeviceInfo(); // set capabilities of this device - VOID setCaps(D3DCAPS8 *d3dCaps); + VOID setCaps(D3DCAPS9 *d3dCaps); BOOL supportAntialiasing(); D3DMULTISAMPLE_TYPE getBestMultiSampleType(); int getTextureFeaturesMask(); void findDepthStencilFormat(int minZDepth); + + }; #endif |