Click to See Complete Forum and Search --> : svgalib / vgagl problem


Liquid Snake
01-17-2004, 04:46 PM
I used to do programming in DJGPP with VESA. In DOS I was able to set a VESA mode and get a pointer to the start of the linear frame buffer. In Linux I'm having a hard time doing this. I can set modes just fine, the problem is getting the address of the display start ( 0,0 pixel). I tried using the VBUF macro but it doesn't completely as VBUF[0] is not pixel (0,0) and when I try to write to the lower part of the screen it just wraps around on top. Does anyone know how to retrieve the pointer to display start in svgalib / vgagl?