|
-
Jun 21st, 2001, 03:36 PM
#1
Thread Starter
Good Ol' Platypus
Wha-?
What the heck is this?
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
}
I find this very wierd; got it off of micro$oft.
http://msdn.microsoft.com/library/de...g_graphics.htm
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 21st, 2001, 03:58 PM
#2
Psudo code. =P
Change the first line to "Public Function SupportBumpMapping() as Boolean" and delete the curly-bracve following it, and change the last curly-brace to an "End Function" to make it work in VB.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|