EDITED: C Graphics Programming help

Status
Not open for further replies.

iinfi

mekalodu
i got the following program frm somewhere and want to run it on my PC ...

#include <stdio.h>
#include <vga.h>
#include <vgagl.h>

main()
{
vga_init();
vga_setmode(G320x200x256);
vga_drawline(10,10,100,100);
sleep(2);
vga_clear();

//Change screen resolution
vga_setmode(G640x480x16);
//Change current drawing color
vga_setcolor(10);

vga_drawline(10,10,100,100);
vga_getch();
vga_setmode(TEXT);
}

i didnt have vga.h and vgagl.h files in my include directory .....
searched google but got only vga.h ....
NOT THE OTHER FILE ....

where can i get the other???
 

dkd903

Broken In
I had done C++ n C# but never required vgagl coz lots a macros r defined in it, ne ways we had 2 do some work on it so i have some links of useful info abt vgagl.h n vgagl.h itself.... do c++ or visual c / c++, dont waste ur time on c...
the links are:
1. info abt vgagl.h *www.rt.com/man/vgagl.7.html

2. vgagl.h *ldp.hughesjr.com/linuxfocus/English/November1998/article72.shtml
 
OP
iinfi

iinfi

mekalodu
i m not getting the 2 files vga.h and vgagl.h

then vga.h which i got frm the net seems to have some problem ... my compiler is showing some error inside the file while compiling ....

i jus copied the vga.h file in the include directory ... but it doesnt seem to work .....

plz help .....
 
Status
Not open for further replies.
Top Bottom