delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/16/06:07:56

From: Charles Krug <charles AT pentek DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GRX beginner question
Date: Wed, 14 Jan 1998 10:17:59 -0500
Lines: 24
Message-Id: <34BCD727.E2DC4D83@pentek.com>
References: <69ii5s$avi$1 AT fep4 DOT clear DOT net DOT nz>
Nntp-Posting-Host: mail.pentek.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

your_login AT clear DOT net DOT nz wrote:

> What is the simplest way to put a bitmap
> from a file onto the screen using grx2.2?
> I have played around with contexts and patterns but don't know an
> easy or successful way to manage.
> Any comments appreciated.
>

Use Allegro.  I downloaded both GRX and Allegro.  Allegro is a bit more
complicated to get going--but Allegro treats everything as a bitmap,
making it easier to deal with "real" bit maps.  Most of the work I'm
doing now is related to scientific graphics.  Here the two libraries are
comparable.  The biggest difference, for me, is coordinate transforms.
If you only need translation (like changing the upper-left-based screen
coordinates into more familier cartesian coordinates) GRX is simpler to
set up.  If you need more complicated stuff like rotations or 3-d
transforms, then Allegro has a big edge--with its excellent linear
algebra support.

--
Charles Krug, Jr.



- Raw text -


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