comp.lang.ada
 help / color / mirror / Atom feed
* Change graphic mode
@ 2005-03-12 10:07 Jean-Baptiste CAMPESATO
  2005-03-12 11:16 ` Marius Amado Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Baptiste CAMPESATO @ 2005-03-12 10:07 UTC (permalink / raw)


Hello,
I want to change de graphic mode (13h for example) on linux. To work
directly in the video memory (0xA0000000L).
It's possible under Ada ? If yes somebody can help me ?
Thanks



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Change graphic mode
  2005-03-12 10:07 Change graphic mode Jean-Baptiste CAMPESATO
@ 2005-03-12 11:16 ` Marius Amado Alves
  2005-03-12 11:28   ` Jean-Baptiste CAMPESATO
  0 siblings, 1 reply; 6+ messages in thread
From: Marius Amado Alves @ 2005-03-12 11:16 UTC (permalink / raw)
  To: Jean-Baptiste CAMPESATO; +Cc: comp.lang.ada


On 12 Mar 2005, at 10:07, Jean-Baptiste CAMPESATO wrote:

> Hello,
> I want to change de graphic mode (13h for example) on linux. To work
> directly in the video memory (0xA0000000L).
> It's possible under Ada ? If yes somebody can help me ?

Some years ago I did and used an Ada binding to the SVGALib on Linux.
Anyone can contact me privately if interested.
There is also a binding associated with BMP files by someone else out 
there.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Change graphic mode
  2005-03-12 11:16 ` Marius Amado Alves
@ 2005-03-12 11:28   ` Jean-Baptiste CAMPESATO
  2005-03-12 11:47     ` Marius Amado Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Baptiste CAMPESATO @ 2005-03-12 11:28 UTC (permalink / raw)


Le Sat, 12 Mar 2005 11:16:00 +0000, Marius Amado Alves a ᅵcritᅵ:

> 
> On 12 Mar 2005, at 10:07, Jean-Baptiste CAMPESATO wrote:
> 
>> Hello,
>> I want to change de graphic mode (13h for example) on linux. To work
>> directly in the video memory (0xA0000000L).
>> It's possible under Ada ? If yes somebody can help me ?
> 
> Some years ago I did and used an Ada binding to the SVGALib on Linux.
> Anyone can contact me privately if interested.
> There is also a binding associated with BMP files by someone else out 
> there.

Hello,
I dont want to use SVGALib because i want to works nativly in the video
memory. But how SVGALib open a graphic mode ? And how they access at the
segment 0xA0000000L to work in video memory ?
I'm waiting for your help.
Thank




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Change graphic mode
  2005-03-12 11:28   ` Jean-Baptiste CAMPESATO
@ 2005-03-12 11:47     ` Marius Amado Alves
  2005-03-12 12:07       ` Jean-Baptiste CAMPESATO
  0 siblings, 1 reply; 6+ messages in thread
From: Marius Amado Alves @ 2005-03-12 11:47 UTC (permalink / raw)
  To: Jean-Baptiste CAMPESATO; +Cc: comp.lang.ada

> I dont want to use SVGALib because i want to works nativly in the video
> memory.

And SVGALib doesn't let you do that?

>  But how SVGALib open a graphic mode ?

Function "vga_setmode"

>  And how they access at the
> segment 0xA0000000L to work in video memory ?

This I don't know.

I don't have the C unit at hand right now. My binding does not access 
memory directly. I used these linker options:

   -i/usr/include/vga.h
   -lvga

So I suggest you try to locate "vga.h" and check if it has the 
functions you require.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Change graphic mode
  2005-03-12 11:47     ` Marius Amado Alves
@ 2005-03-12 12:07       ` Jean-Baptiste CAMPESATO
  2005-03-12 12:20         ` Marius Amado Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Baptiste CAMPESATO @ 2005-03-12 12:07 UTC (permalink / raw)


Le Sat, 12 Mar 2005 11:47:22 +0000, Marius Amado Alves a ᅵcritᅵ:

>> I dont want to use SVGALib because i want to works nativly in the video
>> memory.
> 
> And SVGALib doesn't let you do that?
> 
>>  But how SVGALib open a graphic mode ?
> 
> Function "vga_setmode"
> 
>>  And how they access at the
>> segment 0xA0000000L to work in video memory ?
> 
> This I don't know.
> 
> I don't have the C unit at hand right now. My binding does not access 
> memory directly. I used these linker options:
> 
>    -i/usr/include/vga.h
>    -lvga
> 
> So I suggest you try to locate "vga.h" and check if it has the 
> functions you require.


The setmode function can be interesting for me.
I will try to use that.
Have you a link to download SVGALib for Ada ?
Thanks



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Change graphic mode
  2005-03-12 12:07       ` Jean-Baptiste CAMPESATO
@ 2005-03-12 12:20         ` Marius Amado Alves
  0 siblings, 0 replies; 6+ messages in thread
From: Marius Amado Alves @ 2005-03-12 12:20 UTC (permalink / raw)
  To: Jean-Baptiste CAMPESATO; +Cc: comp.lang.ada

> Have you a link to download SVGALib for Ada ?

Sorry.
I used the SVGALib C library found on my Linux system.
Note *C* library.
I don't have it anymore.
I think it was a RedHat distribution, version 6 or so.
So it should be available somewhere.
Probably here: http://www.svgalib.org/

Contact me privately for my Ada binding if you want to use it as a 
starting point for an Ada binding featuring your requirements namely 
direct access to memory.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-12 12:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-12 10:07 Change graphic mode Jean-Baptiste CAMPESATO
2005-03-12 11:16 ` Marius Amado Alves
2005-03-12 11:28   ` Jean-Baptiste CAMPESATO
2005-03-12 11:47     ` Marius Amado Alves
2005-03-12 12:07       ` Jean-Baptiste CAMPESATO
2005-03-12 12:20         ` Marius Amado Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox