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
Printable View
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
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
drawing animated lines:
-----------------------------------------------------------------------------------
#include<stdio.h>
main()
{
clrscr();
for(a=1;a<25;a++)
{
gotoxy(1,a);
printf("I");
delay(2000);
}
getch();
}