Mail Archives: djgpp/2000/07/07/08:00:19
On Wed, 05 Jul 2000 16:14:09 GMT, eglebbk AT phys DOT uva DOT nl (Evert Glebbeek)
wrote:
>Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:
>
>>RLE sprites _are_ clipped. Compiled sprites are not guaranteed to be
>>clipped or even to be supported on some platforms.
>You're right. I thought I didn't use RLE sprites because they can't be
>clipped; I don't use them because they can't be flipped.
Actually, flipping would probably be easy enough to do if I could
understand the Allegro code.
>>screen is undefined if you use create_video_bitmap().
>
>Oh? I can't find reference to this in the Allegro docs and I can't
>deduce it from the source either, so this is new to me.
>Or do you mean that `screen' isn't nescessarily pointing to the page
>currently being displayed? If so, I knew that already... :)
Video bitmaps are allocated overlapping `screen' but not overlapping
one another. Yes, it's in the mailing list archives. Yes, this needs
to be clarified in the docs.
>>What you should do in this case is save `screen' in your init code and
>>then assign `screen' to whatever page is showing on screen.
>I do that already:
>
>page1 = screen;
>page2 = create_video_bitmap (SCREEN_W, SCREEN_H);
page1 = create_video_bitmap (SCREEN_W, SCREEN_H);
page2 = create_video_bitmap (SCREEN_W, SCREEN_H);
>so I'll just have to do something like
>screen = the_active_page;
>after a show_video_bitmap()? I'll give it a try. Thanks.
--
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -