Thread: Triangle/Other shapes Algorythems....

  1. #1
    Registered User minime6696's Avatar
    Join Date
    Aug 2001

    Lightbulb Triangle/Other shapes Algorythems....

    I have the basix of my graphics API for DOS put down (Called: DosGL) but I am still learning math, so I would really appriciate some algorythems to draw rectangles (I can do that perfectly centered, but with rotation/points not being perfectly inline with each other?), Triangles, "Polygons", and maybe even just lines.

    Here is a basic outline of what I have so far...

    1.) It uses double buffer with arrays of bytes for the pixels (1 pixel = 1 bytes), but will soon turn to 3 byte integers for hardware independance.

    2.) Shapes are presented to rendering algorythems in lists of verticeis.

    Thanks a lot, SPH

    P.S. If you haveany other Q's just AIM or EMAIL me, or just reply to this post!

  2. #2
    Registered User Italia's Avatar
    Join Date
    Feb 2002
    What kind of math are you using to draw this? Trig? Geo?

  3. #3
    Registered User minime6696's Avatar
    Join Date
    Aug 2001

    Lightbulb Well thats just it...

    I will use w/e math I am told is best, that what im asking, for formulas/algorythems in any typeof math to do this stufff...


  4. #4
    The use of "GL" in the name of a graphics library is trademarked by SGI.

    If you you planning on distributing this, you probably want to come up with a name that does not include "GL", just so you can avoid the hassle down the road.

    They've threatened legal action against at least 1 use of it in recent memory.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] drawing: drag GDI shapes
    By pc2-brazil in forum Windows Programming
    Replies: 3
    Last Post: 10-05-2008, 02:06 PM
  2. Counting shapes
    By Tupcia in forum C++ Programming
    Replies: 1
    Last Post: 09-27-2008, 09:03 PM
  3. Universal area forumula for equilateral + equiangular shapes?
    By Bird Killer in forum A Brief History of
    Replies: 4
    Last Post: 03-05-2006, 02:55 PM
  4. Program with Shapes using Virtual Functions
    By goron350 in forum C++ Programming
    Replies: 12
    Last Post: 07-17-2005, 01:42 PM
  5. Draw Shapes.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-19-2002, 09:22 AM