2nd try ...
---------- Forwarded Message ----------
Subject: Re: Grx Problems with linux-X11
Date: Thu, 30 Dec 1999 22:21:45 +0100
From: Hartmut Schirmer <hartmut.schirmer(a)arcormail.de>
On Thu, 30 Dec 1999, DAANEN Vincent wrote:
>Hi
> I'm using grx23 with djgpp and all goes fine but, with linux, I meet
>a problem
> The problem is that GrSetColor don't seem to work :
> - we define 1024x768x256 mode => pseudo color in 8 bits
> - next we set the colors : for (i=0;…
[View More]i<256;i++) GrSetColr(i,i,i,i); :
>we should have a gray-level color table from black (i=0) to white (i=255)
>
> but when I display an image of the gray-levels, I obtain colored
>colors (green red,blue yellow...)
>
> Can someone tell me what to do to obtain my gray-level color table
>using THIS WAY
> Thanks
Well, normally GRX wonŽt allocate all available colors under X11.
Using the option ŽprivcmapŽ forces GRX to use a full 256 color
map.
You can either set the GRX20DRV environment variable to Žxwin::privcmapŽ
or call GrSetDriver( "xwin::privcmap")
Hartmut
[View Less]
Third try to get this out ...
---------- Forwarded Message ----------
Subject: GRX copyright assignment to FSF
Date: Thu, 30 Dec 1999 22:51:44 +0100
From: Hartmut Schirmer <hartmut.schirmer(a)arcormail.de>
Hi Andris, hi Ulrich,
both of you contributed major major parts to the GRX library. Before
we can assign the GRX graphics lib to the FSF we need you principle
agreement about this step.
So far Csaba Biegl, Hartmut Schirmer, Michael Goffioul and Michal Stencl
as major contibutors …
[View More]agreed in principle.
Andris Pavenis and Ulrich Leodolter need to agree before assignment can
be done.
Andris and Ulrich, please send a note about your opinion to
the GRX mailing list (grx(a)gnu.de)
me (hartmut.schirmer(a)arcormail.de)
Richard Stallman (rms(a)gnu.org)
If Andris&Ulrich agree in principle about assigning GRX to the FSF
Richard will send us the right papers to sign.
To anyone who contributed to GRX and isnŽt listed as major contributor
will need to sign a disclaimer. IŽll contact you after all major
contributors agreed.
Thanks to all of you and a happy new year
Hartmut
[View Less]
Hi All,
I suscribed to this list a month ago, and I don't see a lot of mouvement on
the list, so I wonder if GRX is actually being used. If so, perhaps someone
can help me.
I'm evaluating the possibility of porting GRX to a PowerPC, precisely to a
MPC823, which has its own on-chip graphics system. I don't need all the
possibilities of GRX, with a 8 bits per pixel frame, and off-screen bitmaps
of 1 bit per pixel will be enough.
Any help or suggestion would be very appreciate.
Tanks.
> …
[View More]Josu Onandia
> Dpto. I+D Software.
> e-mail: jonandia(a)fagorautomation.es
>
> ----------------------------------------------------
> Fagor Automation, S.Coop.
> Barrio San Andres, s/n - P.O. Box. 144
> Mondragon 20500 - SPAIN
>
> http://www.fagorautomation.mcc.es
>
[View Less]
Hi All,
maybe I´m about to demontsrate my stupidty (again).
I want to do "off-off-screen" rendering with GRX, huh, what??
Let me explain.
It all works almost fine for one time:
I do:
GrSetDriver("memory gw 640 gh 400 nc 256");
GrSetMode(GR_default_graphics);
GrContext* root = GrCurrentContext();
GrSetContext ( root );
root = GrSaveContext( NULL );
/* doing lots of drawing */
/* ... */
/* after a while, probing what has been drawn,(double-loop x,y): */
c = (*…
[View More]GrCurrentFrameDriver()->readpixel)((GrFrame
*)(&(root)->gc_frame), ((x)), ((y)) );
/* => leads to all what is fine. */
This all works fine for one level of offscreen-drawing.
Now for the bisquit:
Beyond that, I would like to generate another GrContext out of the blue,
make some drawings on it, off-off-screen, so to speak,
and later do something like the following:
GrImage img_local = GrImageFromContext(ImageGrContext_out_of_the_blue);
GrImageDisplay(x, y, img_local);
to smash this image onto my root-GrContext.
The bisquit is this "ImageGrContext_out_of_the_blue":
When not in offscreen mode (that is, having said
GrSetDriver("xwin...")), it all works great when doing:
ImageGrContext_out_of_the_blue =
GrCreateContext(width,height,NULL,NULL);
Mainly because
GrCoreFrameMode() (GrDriverInfo->sdriver.rmode)
leads to something usable (??).
But when being in offscreen-mode, GrCoreFrameMode() yields NULL.
This might be alright, but GrCreateFrameContext() depends on a
valid mode, thus returning NULL for the whole function, and
blocking all what should follow.
Later I tried to spoof this function with
ImageGrContext_out_of_the_blue = GrCreateFrameContext(19, ....);
(19 is the mode I need, it seems),
but this leads to SigSegv. later somewhere in the system.
Many thanks in advance.
greetings, Joe.
--
Joachim Euchner, Prozessrechnerverbund-Zentrale
Sekr.: MA 073, FSP-PV, Technische Universitaet Berlin
Str. d. 17. Juni 136, 10623 Berlin, Deutschland
Phone: [(+49|0)30]-314-21701 Fax: ..-21114
Email: joe(a)prz.tu-berlin.de
www: www.prz.tu-berlin.de/~joe
"We're going up the river about 75 klicks above the
Do Lung bridge."
[View Less]