home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
CBGRX100.ZIP
/
CONTRIB
/
LIBGRX
/
1ST_READ.DOC
next >
Wrap
Text File
|
1992-04-10
|
6KB
|
143 lines
Overview:
This package contains a replacement graphics library for
DJGPP, named "LIBGRX". It supports EGA and VGA PC graphics
adapters in both 16 and 256 color modes. Support for mono
EGA/VGA, Hercules (the "original" monochrome) and 32768 color VGA
modes should be coming soon. The library supports (among other
things):
- an unlimited number of graphics drawing areas (called
contexts) both in video and system RAM.
- adjustable clipping regions for contexts.
- a rich set of graphics primitives.
- a library of loadable bit-mapped fonts.
- user to screen coordinate transformations.
The library is upward compatible with the original 256 color
DJGPP VGA graphics library. However, only the C functions are
supported, the 'GrRegion' C++ class is not included in LIBGRX.
The LIBGRX graphics library is copyright: (c) 1992 Csaba
Biegl, 820 Stirrup Dr, Nashville, TN 37221. Additionally, some
modules were derived from DJGPP code copyright: (c) DJ Delorie,
24 Kirsten Ave, Rochester NH. 03867-2954. Consult the appropriate
copyright text (in the files "copying.cb" and "copying.dj",
respectively) for further information.
Installation:
The library is distributed in the form of a 'ZIP' archive,
it should be unarchived (use the '-d' option) in the directory
where DJGPP was installed. This will place the files of the
archive into a directory tree created under 'CONTRIB/LIBGRX'.
The 'makefile' in the base directory can be used to install
the header and library files in the standard DJGPP include and
library directories by issuing the "make install" command. NOTE:
this will work only if you unarchived the package in the
directory where DJGPP is installed. Alternatively, you can use
the header and library files in their original location, but then
you have to supply 'gcc' with the proper include and library
paths.
The same graphics driver you have been using for 256 color
VGA modes can be used with LIBGRX. This means that (at least for
now) you don't have to change your GO32 environment variable. The
documentation describes how to use (or create -- if you have an
unsupported card) the 16 color EGA/VGA drivers or the new,
programmable drivers.
There is one more environment variable which has to be set:
the directory where the fonts belonging to LIBGRX were installed.
For example: if you installed DJGPP in "c:\djgpp" and unarchived
the package in that directory, you would have to issue the
command:
SET GRXFONT=c:\djgpp\contrib\libgrx\fonts
This completes the installation procedure. You can now
rebuild your application(s) with the LIBGRX library. The changes
to accomplish this are minimal:
(1) Change the "#include <graphics.h>" and "#include <mouse.h>"
lines in your program to "#include <grx.h>" and "#include
<mousex.h>", respectively.
(2) Link with "-lgrx" instead of "-lgr".
Your program should work exactly the same as before. Consult
the documentation for the new features in the LIBGRX graphics
library.
Directories:
Successful unarchiving of the package should create the
following directories under the base directory where LIBGRX was
installed:
DOCS: documentation files. These are provided both
in WordPerfect (tm) 5.1 and plain DOS text
format.
DRIVERS: additional graphics drivers for DJGPP.
EVENTS: an interrupt-driven mouse and keyboard event
queue library for both Turbo C and DJGPP.
FONTS: loadable bit-mapped fonts for LIBGRX.
INCLUDE: public (externally used functions, variables,
etc..) include files.
LIB: pre-built libraries for DJGPP.
SRC: LIBGRX sources
TEST: test programs
UTILS: utilities for converting fonts, etc...
Documentation:
This is a brief overview of the contents of the
documentation files included in the 'DOCS' sub-directory:
1ST_READ.WP5: this file in WordPerfect (tm) format.
DRIVERS.DOC
DRIVERS.WP5: guide to writing graphics drivers for
unsupported adapters.
EVENTS.DOC
EVENTS.WP5: manual for the event queue library
INTERNAL.DOC
INTERNAL.WP5: internal details of the library and
rebuilding instructions
LIBGRX.DOC
LIBGRX.WP5: user's manual for the graphics library
MISSING.DOC
MISSING.WP5: listing of features and functions not
implemented in this first beta release