Mail Archives: djgpp/1996/04/09/17:05:16
>>Second.. Is there anyway to access the memory of the buffer directly so I
>>dont have to use the putpixel function everytime?
>
>and nicolas AT dsys DOT ceng DOT cea DOT fr (Eric NICOLAS) replied:
>
>>In the GrContext datas, you have somewhere a gf_baseaddr which is the adress
>>of the screen. But be aware that you'll have to manage *far* pointers, which
>>is not obvious with gcc. PutPixel and others libgrx functions are REALLY fast,
>
>What's this about far pointers? I thought they didn't exist under gcc.
>AFAIK all pointers are capable of specifying any memory address... the
>far keyword is not defined...
Yes, *far* keyword is not defined, but under DPMI, when you want to access screen or
whatever, you have to acces to another segment that CS=DS=ES=SS djgpp one. To do that,
you must use a DPMI selector and put it in DS. So it is like a 'far' pointer. There
are functions and macro-definitions in a djgpp's header (don't remember the name) that
provides equivalent to 'far' keyword.
Hope it helps.
--
Eric Nicolas <nicolas AT dsys DOT ceng DOT cea DOT fr>
Take a look to the SWORD home page :
http://mimine.iut.univ-metz.fr/~borysgr/sword.web/home.html
- Raw text -