home *** CD-ROM | disk | FTP | other *** search
-
- The MegaGraph Graphics Library
- ------------------------------
-
- The MegaGraph Graphics Library (MGL) is a full featured graphics library for
- displaying high performance graphics on personal computers. It provides fast,
- low level 2D drawing primitives that can be used to implement video games,
- user interface software and even real-time 3D animation. It will work in any
- video mode that has 16 or more colors, including the new HiColor and TrueColor
- modes available on modern PC's.
-
- The MGL also fully supports the Microsoft Mouse Interface in all supported
- graphics modes, including the SuperVGA video modes.
-
- The MGL supports Borland C++ 3.1, Microsoft C 6.0 and Symantec C++ 6.1 and
- later compilers. It may work with earlier compilers but these have not been
- tested.
-
- The MGL requires at least an 80386 based CPU in order to operate correctly,
- so will not work on 286 and lower machines.
-
- Library Naming Conventions
- --------------------------
-
- The library naming conventions are similar to that used by Borland and most
- compiler vendors. The MGL only supports the large memory model, so there is
- only one library supplied for each of the compilers named 'mgraph.lib'.
-
- Installation
- ------------
-
- To install the graphics library, you need to do two things. Copy all of the
- include files from the INCLUDE directory into your standard include file
- directory, or make sure that the directory containing the include files
- is on your standard include file path (under Borland C++ you can specify
- this in your global turboc.cfg file - see the one in the EXAMPLES directory).
-
- Second you must copy all of the library files from the LIB directory into
- your standard library directory, or make sure that the directory containing
- the library files is on your standard library file path.
-
- Personally I have separate include file and library file directories,
- but that is personal preference.
-
- Once you have done this, you can try to compile the example programs.
-
- Making the example programs
- ---------------------------
-
- In the EXAMPLES directory you will find the source code to the sample
- programs provide with the MGL. These programs are supplied pre-compiled
- in the MGLD??.ZIP archive which contains all of the MGL demo programs compiled
- with full SuperVGA support. However a makefile is provided for compiling these
- example programs from the command line for your specific compiler (requiring
- Borland MAKE however). Only one generic makefile is provided, and requires
- that you first install the compiler specific makefile definitions into a
- standard directory. All of the SciTech Software products use the same
- makefile definitions for compiling with the different compilers.
-
- The makefile definitions are provided in the file MKDEFS??.ZIP, which
- should be unzipped into the directory \MAKEDEFS on the same drive that
- you will be compiling your source files (ie: C:\MAKEDEFS if your source
- files reside on drive C:). Once you install the makefile defintions into
- this directory, you will be able to run all the makefiles for different
- compilers simply by running make with a different command line option. The
- following commands should be used:
-
- make -Dmsc - for Microsoft C
- make -Dsymantec - For Symantec C++
-
- If you do not have access to the Borland make program, you can use the
- special supplied makefiles for MSC and Symantec C++ (these makefiles are
- more limited than the generic one).
-
- Once the mgldemo.exe program is compiled, you can run it. If you type the
- command:
-
- mgldemo -h
-
- you will be given help information detailing the available video modes
- that you can tell it to use for your system. It will also provide information
- on the various command line switchs that you can use to modify the way the
- program works on your system.
-
- Making the MGL demo program
- ---------------------------
-
- This archive also contains the source code to the MGL demo program, available
- in the separate MGLD??.ZIP archive. This program is written in C++ using the
- MegaVision Application Frameworks, which is a C++ GUI toolkit for the MGL.
- In order to compile this program you will need to obtain the MegaVision AF
- and the Techniques Class Library. Both of these should be available from
- the same location that you obtained this file in the archives MVIS??.ZIP
- and TECH??.ZIP.
-
- Whats are the files debug.h, and mouse.h?
- -----------------------------------------
-
- The header file "debug.h" is a general header file used to define a number of
- useful debugging macros and useful type definitions (uchar, uint etc). It
- is required by all of the library include files. As long as it is available
- somewhere on your normal include file path, or in the current directory you
- should not have to worry about it.
-
- The header file "mouse.h" defines how to use the mouse library interface
- routines. This is from the 'MegaToolbox library', which should be available
- from the same place that you got this library from, or directly from SciTech
- Software. For simplicity, all of the mouse library routines are included in
- the graphics library, but no documentation is provided. You will need to
- refer to the docs that come with the 'MegaToolbox' for further information
- about the mouse library.
-
- The MGL actually hooks into the mouse interrupt 0x33 to enable full mouse
- support in the SuperVGA video modes, so you can continue to use your
- favorite mouse library with the MGL. However, if you wish to install your
- own mouse event handling routines, you will need to use the mouse library
- that comes with the MegaToolbox to co-operate correctly with the MGL (the
- MGL install's it's own event handler for moving the mouse cursor around
- on the display).
-
- Files in distribution
- ---------------------
-
- The distribution archive contains files stored in a number of directories,
- so it needs to be unpacked with 'pkunzip -d' or similar.
-
- EXAMPLES\*.* - All example code, and compiled test programs.
- INCLUDE\*.* - All include files
- LIB\*.* - All library files for Borland C++
- LIB\MSC\*.* - All library files for Microsoft C
- LIB\SYMC\*.* - All library files for Symantec C++
- FONTS\*.* - Selection of supplied font files
- DOC\mgraph.txt - Online text version of documentation
- *.drv - Graphics device driver files
- *.obj - Object file versions of device driver files
- mkdefs??.zip - Makefile definitions
- univbe??.zip - Universal VESA VBE
- read.me - This file!
- copyrigh - Copyright notice
- version - Version of library
- changes - Log of changes to the library
- license.doc - SciTech Software Shareware License Agreement
- order.doc - SciTech Software software order form
- products.doc - Details of available SciTech Software products
-
-