Mail Archives: djgpp/1998/01/16/06:17:46
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 -