Line/Circle algos (clock demo)

This is a discussion on Line/Circle algos (clock demo) within the Game Programming forums, part of the General Programming Boards category; After seeing the cprogramming tutorial for line algorithms written in Pascal (ick) i thought it would be appropriate to post ...

  1. #1
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    Line/Circle algos (clock demo)

    After seeing the cprogramming tutorial for line algorithms written in Pascal (ick) i thought it would be appropriate to post something with a C, OpenGL flavor.

    This demo displays an anolog clock using Bressenhams line and circle algorithms. The only openGL raster primitives used are GL_POINTS to set pixels.

    windows and linux freindly source (though you'll have to add '#include <windows.h>' to compile for windows)
    requires GLUT library.

    enjoy, feedback welcome.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Outside influences on clock cycles? (clock_t)
    By rsgysel in forum C Programming
    Replies: 4
    Last Post: 01-08-2009, 05:15 PM
  2. clock program
    By bazzano in forum C Programming
    Replies: 3
    Last Post: 03-30-2007, 10:12 PM
  3. Forming RTS Demo Team Sixth Extinction
    By SteelRain4eva in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 06-08-2006, 08:47 PM
  4. Adventurers and Outlaws and new Demo
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 11-07-2004, 04:06 AM
  5. Second MoA Demo Tomorrow
    By harryP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-30-2002, 07:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21