DIGIT-ARC read-only archive · snapshot: July 23, 2026

EDITED: C Graphics Programming help

4 posts · originally from https://geek.digit.in/community/threads/edited-c-graphics-programming-help.12130/

iinfi
iinfi Original post #1
Jul 3, 2005 at 12:59 AM
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???
D
dkd903 #2
Jul 3, 2005 at 1:56 PM
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
iinfi
iinfi #3
Jul 3, 2005 at 3:19 PM
:cry:
but i cant find the file i need vgagl.h ...... where is it ... plz help ....
iinfi
iinfi #4
Jul 6, 2005 at 11:37 PM
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 .....