Amiga.org

Coffee House => Coffee House Boards => CH / Science and Technology => Topic started by: tkgshow on May 26, 2009, 01:04:15 AM

Title: Direct3D
Post by: tkgshow on May 26, 2009, 01:04:15 AM
Can anyone help with Direct3D C++?
Why would a program that renders the top, bottom, front and back of a box using

    d3ddev->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 16, 0, 8);

crash my PC when changed to render the complete box using

    d3ddev->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 24, 0, 12);
Title: Re: Direct3D
Post by: x303 on May 29, 2009, 06:47:27 PM
Maybe this article will give you some more insight: http://blogs.msdn.com/jsteed/pages/drawindexedprimitive-demystified.aspx

x303 :D :D :D