Results 1 to 2 of 2

Thread: Wha-?

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    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)

  2. #2
    Zaei
    Guest
    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
  •  



Click Here to Expand Forum to Full Width