Index:
[thread]
[date]
[subject]
[author]
From: Jim Kjellin <jim.kjellin@sciron.se>
To : 'ggi-develop@eskimo.com' <ggi-develop@eskimo.com>
Date: Mon, 29 Mar 1999 15:27:19 +0200
FW: Visuals 'n stuff
Oops this got sent only to andreas :P.
> -----Original Message-----
> From: Jim Kjellin
> Sent: Monday, March 29, 1999 3:13 PM
> To: 'andreas.beck@ggi-project.org'
> Subject: RE: Visuals 'n stuff
>
> I found something rather intresting/annoying when messing around with
> memory visuals.
>
> if you do a ggiGetPixelFormat on the visual (this is after the main visual
> for the screen
> has been created btw) which is in 32-bit mode, i got the following:
> red_mask 0x00ff000000
> green_mask 0x0000ff00
> blue_mask 0x000000ff
> red_shift 8
> green_shift 16
> blue_shift 24
>
> now this looks screwed since this is wrong for my endianesss (intel type),
> what is even
> more screwed is if I make it a 24-bit visual (packed mode) I get the
> _exact_ same values.
> Now shifting 24 times in a 24-bit environment is not healthy for you
> little bits, they tend
> to run home if you try it.
>
> This was what was messing my code up and when hard-coding (BAD (tm)) the
> shift values it works.
>
> Fix please? (pretty please)
>
> --- Jim Kjellin
>
> -----Original Message-----
> From: becka@rz.uni-duesseldorf.de [SMTP:becka@rz.uni-duesseldorf.de]
> Sent: Friday, March 26, 1999 8:10 PM
> To: ggi-develop@eskimo.com
> Subject: Re: Visuals 'n stuff
>
> Hi !
>
> > I'm currently in the process of porting a game to ggi (mainly linux but
> > other OS's if there is demand).
>
> Most Unixish OSes should be a piece of cake with GGI ...
>
> > Since the game was develope under Windows/DX (not by me mind you :P) it
> uses
> > a big bunch surfaces for visual-fx and sprites etc.
>
> > From what I've gathered surfaces should be replacable with
> memory-visuals
> > under ggi, problem is though when i tried this i got nothing.
>
> How did you try ? Could you post some sample code ?
>
> > Looking at the demos for answers didn't give much since they were all
> > diffrent implementations but I couldn't find any which used multiple
> > visuals.
>
> demo.c does it for the CrossBlit test. Look for "memvis".
>
> > Am I on the right track here or do I need rethink the route?
>
> The track sounds good ...
>
> CU, Andy
>
> --
> = Andreas Beck | Email :
> <andreas.beck@ggi-project.org> =
Index:
[thread]
[date]
[subject]
[author]