xboxscene.org forums

Author Topic: How Can I Draw A Line In Xbox Directx?  (Read 78 times)

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
How Can I Draw A Line In Xbox Directx?
« on: March 31, 2003, 08:27:00 AM »

QUOTE (CptanPanic @ Mar 31 2003, 11:41 AM)
I am trying to draw lines, but there doesn't seem to be any line drawing support in the Xbox's version of directX, what would be the best way to draw a line?  Note I want to use line drawing to make a shape with 1024 verticies that move every frame.  It is for a Spectrum Analyzer.
Thanks,
CP

It's easy to do in Direct3D.... use DrawVerticesUP() method with  D3DPT_LINELIST to draw lines between vertices.

It uses pairs of vertices, so you can include a whole set of lines in a single call (For example, with 6 points, it will draw 3 lines - none of them need to be connected)
Logged

razorrifh

  • Archived User
  • Sr. Member
  • *
  • Posts: 329
How Can I Draw A Line In Xbox Directx?
« Reply #1 on: March 31, 2003, 05:02:00 PM »

blink.gif at least you dont spend all your time programming mxm and on these forums!  jester.gif  tongue.gif
Logged