delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/20/03:37:20

From: Chris Sequeira <nav2 AT flash DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: How's the Allegro data?!?!?!
Date: Mon, 16 Jun 1997 18:37:41 -0500
Organization: BlackHawk Software
Lines: 16
Message-ID: <33A5CE45.1C15@flash.net>
Reply-To: nav2 AT flash DOT net
NNTP-Posting-Host: tc5-208.flash.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

How is the data stored in Allegro's BITMAP type?  I know that it is
accessed by bitmap->line[y][x], but I have a problem:

	I'm using the Plush 3D graphics library, which renders to a raw
framebuffer (a chunk of memory).  I want to draw using Allegro's
graphics modes (SVGE, MODE-X, etc).  At the moment, I have to take the
data in the framebuffer and copy it to an Allegro bitmap which is, of
course, surprisingly slow.  Is there anyway, I can copy a pure chunk of
data (in this case, the data in the framebuffer) directly to an Allegro
bitmap, then blit the bitmap to the screen?
-- 
From Chris Sequeira (nav2 AT flash DOT net)
Lead Programmer: BlackHawk Software
http://www.flash.net/~nav2/bhawk

Web page design for only $30!

- Raw text -


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