What the heck is this?
I find this very wierd; got it off of micro$oft.Code:Function SupportsBumpMapping As Bool { Dim d3dCaps As D3DCAPS8 m_D3DDevice.GetDeviceCaps d3dCaps ' Does this device support the two bump mapping blend operations? If ( d3dCaps.TextureOpsCaps And _ ( D3DTEXOPCAPS_BUMPENVMAP Or D3DTEXOPCAPS_BUMPENVMAPLUMINANCE ) = 0) Then SupportBumpMapping = 0 End If // Does this device support up to three blending stages? If d3dCaps.MaxTextureBlendStages < 3 Then SupportBumpMapping = 0 End If SupportBumpMapping = 1 }
http://msdn.microsoft.com/library/de...g_graphics.htm




Reply With Quote