Drawing lines

This is a discussion on Drawing lines within the C Programming forums, part of the General Programming Boards category; How do you draw lines (just simple graphics) in C? I've got a project coming up and it's a game ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    15

    Drawing lines

    How do you draw lines (just simple graphics) in C? I've got a project coming up and it's a game so this would be helpful.

    Thanks

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Graphics isn't "simple". First you need to pick an API (DirectX/OpenGL) or use DOS VGA (kinda old).

    http://faq.cprogramming.com/cgi-bin/...&id=1031248558
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    3

    ASCII characters for drawing animated line

    drawing animated lines:
    -----------------------------------------------------------------------------------
    #include<stdio.h>

    main()
    {
    clrscr();
    for(a=1;a<25;a++)
    {
    gotoxy(1,a);
    printf("I");
    delay(2000);
    }
    getch();
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing lines
    By rudyman in forum C Programming
    Replies: 2
    Last Post: 05-01-2008, 02:32 PM
  2. drawing basic lines....
    By 1dayprogrammer in forum C++ Programming
    Replies: 10
    Last Post: 02-23-2008, 03:07 PM
  3. Drawing Lines
    By Alan75 in forum C++ Programming
    Replies: 6
    Last Post: 12-05-2007, 02:46 AM
  4. Drawing lines and ellipses with DirectDraw
    By Hunter2 in forum Game Programming
    Replies: 9
    Last Post: 01-08-2003, 12:25 PM
  5. drawing lines
    By bluehead in forum C++ Programming
    Replies: 1
    Last Post: 11-23-2001, 12:22 PM

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