delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/17/18:36:02

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: PCX displaying help
Date: Sun, 17 Aug 1997 19:24:35 GMT
Organization: [posted via] Easynet Group PLC
Lines: 54
Message-ID: <33f74b69.6084836@news.easynet.co.uk>
References: <01bcaa4a$22bdd7e0$LocalHost AT rossa>
NNTP-Posting-Host: foot.easynet.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 16 Aug 1997 13:47:13 GMT, "Ross Boast" <Rossa AT btinternet DOT com>
wrote:

>Djgpp experts,
>                     Being new to djgpp (and c/c++ in its self) i need
>examples of source to learn from and use.I find this a valuable way to
>learn and remember commands (aswell as reading numerous texts on the
>subject).I realise starting in djgpp isn't a good start as it seems fairly
>complicated compared to seem others i have seen but i am not complaining as
>djgpp is after all free.In my opinion the main compilers and languages are
>quite expensive to buy so Djgpp seemed a good place to start and hopefully
>find my feet.

Indeed. You will probably find (as I did) that djgpp is more than a
place to start -- I have used it for several years and still do. It's
not just a toy :). Also, it shouldn't be too intimidating, even to a
beginner -- you just need to get your feet wet and if you want to do
hardware-level programming (e.g. graphics, sound, or high-resolution
timing) you'll need to find out a little (or a lot) about doing such
things in protected mode. If you already know what you're doing, or
have some code and tutorials telling you what to do, look through the
FAQ, especially section 18 and parts of section 17.

Alternatively, if this isn't what you want, you could use tried and
tested code other people have written, in the form of libraries, which
will do this tedious interfacing for you, so that you can concentrate
on other (more important?) things. If you prefer this approach, I
strongly suggest you look at Allegro, which is an extremely capable
library aimed at games programming. See
http://www.talula.demon.co.uk/allegro/ for full information.

Other (graphics) libraries include JLib, GRX and SVGAlib, all of which
you can download and use free of charge. They are all linked to from
the djgpp download pages, http://www.delorie.com/djgpp/dl/. Also see
section 22.2 of the FAQ.

>	Anyway back to the issue, i am currently trying to complete a program and
>i would like to display pcx files (or any image file!) i have numerous
>written code but that doesn't work due to Djgpp memory far/near pointers
>(so i'm told), i've read the FAQ but i'm still unable to write a code which
>displays multiple pcx files in Djgpp, if someone has or knows where i could
>find a sample source code for displaying pcx in djgpp i would be grateful.

Allegro is distributed as source code, so the source is in there, but
the graphics routines are necessarily hard to understand at first.

I can't suggest offhand any other tutorials, but if you poke around
the djgpp download pages (mentioned earlier) and Brennan Underwood's
pages (which contain reams of useful information and links) at
http://www.home.ml.org/brennan/djgpp/ IIRC you are likely to find what
you're looking for.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


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