I can now create an object and load an object into DX9. What I can't seem to do is display an object as a wireframe? All I seem to be able to do is display it with a solid colour??
wouldn't device.DrawPrimitives(PrimitiveType.LineList,.....) or device.DrawPrimitives(PrimitiveType.LineStrip,.......) do the trick instead of trianglelist / trianglestrip?
Yes but this type of code does not appear in the sample I've learned from the SDK;
Visual Basic:
For i = 0 To m_matSphere.Length - 1
' Set the material for this subset
m_obj3DDevice.Material = m_matSphere(i)
' Draw the mesh subset
m_mshSphere.DrawSubset(i)
Next i
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.