delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/31/13:45:25

From: "Pavlos" <trash24379 AT usa DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: videomemory with bitmaps + sprites
Date: Sat, 31 Jul 1999 20:35:46 +0300
Organization: An OTEnet S.A. customer
Lines: 33
Message-ID: <7nvc51$igm$1@newssrv.otenet.gr>
References: <sAEo3.604$ay DOT 93084 AT news DOT tli DOT de>
NNTP-Posting-Host: dram-a14.otenet.gr
X-Trace: newssrv.otenet.gr 933442529 18966 195.167.113.237 (31 Jul 1999 17:35:29 GMT)
X-Complaints-To: abuse AT otenet DOT gr
NNTP-Posting-Date: 31 Jul 1999 17:35:29 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Take a look at exflip.c in the examples directory. It's very small and well
commented.
If you have a version of Allegro that has the examples numbered (ex01, ex02,
ex03 etc.) find the one that says:
double buffering and page flipping
Pavlos


Amin Kharchi wrote in message ...
>Hello!
>
>I want to use the fast  videomemory with pageflipping for my game:
>
> BITMAP *bmp;
> bmp = create_video_bitmap(640,480);
>
>If I draw a bitmap with draw_sprite(bmp, sprite, 0,0) in to the created
>videospace, the sprite will be shown on the screen... But why??? I don't
>have used the function show_video_bitmap(bmp)!
>
>How could this possible and how I must use this video_bitmap-functions
>correctly?
>
>And I have a loop for the draw_sprite() and its flickering, with
>show_video_bitmap() and vsync() it's not better.
>
>--
>Amin Kharchi
>Wolfsburg, Germany
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019