Thread: Draw arcs

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    589

    Draw arcs

    Me again

    To draw lines and points are easy with DirectX but I can't find any built ins for arc or ellipses or splines. I could create a circle by drawing alot of small lines but I wonder if that is the right way to do it. What is the best way to draw a circle with DirectX?

    ~Barjor

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    There are functions in GDI for drawing ellipses. There are also built in GDI functions for drawing Bezier Curves. There is not, that I know of, any functions for drawing splines. You can render them yourself though if you know the De Boor algorithm. If you need help with splines let me know and I can help you.

    I assume you know how to use the GDI stuff with DirectX. If you don't, all you do is get a DC to the surface , perform the operation then release the DC.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    Originally posted by MrWizard

    I assume you know how to use the GDI stuff with DirectX. If you don't, all you do is get a DC to the surface , perform the operation then release the DC.
    Will the GDI arc be rotated when I rotate my directX stuff?. If not it sounds easier to draw an arc with DirectX LineList then to modify the GDI arc to move with the DirectX rotation matrix. I have actually never combined GDI with directX, sounds cool, will give it a try later

    Thanks for the help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 11:56 PM
  2. draw function HELP!!!
    By sunoflight77 in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 11:28 PM
  3. ray casting
    By lambs4 in forum Game Programming
    Replies: 62
    Last Post: 01-09-2003, 06:57 PM
  4. draw to a BITMAP* argument - allegro and objects again
    By MadHatter in forum Game Programming
    Replies: 13
    Last Post: 12-13-2002, 06:51 AM
  5. Draw Shapes.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-19-2002, 09:22 AM