Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to draw line, circle , or 2D graphics in Linux Using C or C++?
13-06-2010, 09:04 AM
Post: #1
How to draw line, circle , or 2D graphics in Linux Using C or C++?
Hoe to develop computer graphics program in Linux using C programming language . .
Find all posts by this user
Quote this message in a reply
13-06-2010, 09:06 AM
Post: #2
RE: How to draw line, circle , or 2D graphics in Linux Using C or C++?
Quote:#include "stdio.h"
#include "graphics.h"
int main()
{
int gd=DETECT, gm=VGAMAX;
initgraph(&gd,&gm, 0);
moveto(0, 0);
setcolor(4);
rectangle(50,50,500,200);
getch();
closegraph();
return 0;
}

Refer this link for more information
http://openpeta.com/index.php/2009/09/2d...-in-linux/
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: