============================
If somebody likes to use it:
FEEL FREE TO USE IT
If you want it: Mail to:
michaelkn...@nol.at
===========================
ANNOUNCE:
G r a p h i X v6.00b
=====================
former RGB386-Library
2D-Graphics-Library for Borland Pascal 7.0 (DPMI-Protected-Mode)
Requirements:
=============
- Borland Pascal 7.0 (not Turbo Pascal 7.0)
- Computer
- ideal ......... Pentium MMX/AMD K6, VESA 2.0 compatible
PCI-graphics-card
- minimal ....... 386SX-16Mhz, 2MB RAM, 256KB-ISA-graphics-card which
manages 640x400x256 colors with a VESA 1.2 driver
- good .......... 486DX-33Mhz, 8MB RAM, 1024KB-VLB-graphics-card
(hicolor-DAC) with VESA 2.0 driver
- better ........ 486DX2-66Mhz, 16MB RAM, 2048KB-PCI-graphics-card
(truecolor-DAC) with VESA 2.0 compatible
- more better ... Pentium-100Mhz, 32MB RAM, 4096KB-PCI-graphics-card
(truecolor-DAC), VESA 2.0 compatible
- best .......... Pentium II/AMD K6, 64MB RAM,
8192KB-AGP-graphics-card, VESA 2.0 compatible
- dream ......... Intel Octium VIII-1500MHz, 2GB RAM,
64MB-super-ultra-AGP-pro-graphics-card (64bit-color), VESA 4.5
compatible
* of course, it will run on Cyrix, IDT and UMC processors too
Features:
=========
Overview:
---------
- supported resolutions:
- 320x200
- 320x240
- 400x300
- 512x384
- 512x480
- 640x350
- 640x400
- 640x480
- 800x600
- 1024x768
- 1152x864
- 1280x1024
- 1600x1200
- supported color modes
- 8bit (fake RGB 6*6*6)
- 15bit (5:5:5)
- 16bit (5:6:5)
- 24bit (8:8:8)
- 32bit (8:8:8)
- supported standards/hardware
- VESA (1.2, 2.0): bankswitching, LFB
- ARK-Chips: bankswitching, LFB
- Matrox-Chips (2064W, 2164W, 1064SG): bankswitching, LFB,
hardware-acceleration
- S3-Chips: bankswitching, LFB, hardware-acceleration (S3 Vision only
!!!, I hope, S3 will accept my developer-registration now, it's the
second try... :-(((, Matrox was nicer... :-))) )
- SiS-Chips: bankswitching, LFB
- Trident-Chips: bankswitching, LFB
- Tseng-Chips (ET4000-Chips): bankswitching, LFB
* Im not sure, if it works on ARK, SiS or Tseng Chips
- supported instruction sets
- 386-instruction set
- MMX-instruction set is used on MMX-capable-processors (Pentium MMX,
Pentium II, AMD K6, AMD K6-2, ...)
- current MMX graphics functions:
- lineH
- bar
- triangle
- moverect
- putimage
* some other functions are faster, because they use them
- current hardware accelerated graphics functions:
- line (Matrox, S3)
- lineH (Matrox, S3)
- bar (Matrox, S3)
- barXOR (S3)
- triangle (Matrox)
- moverect (Matrox, S3)
* some other functions are faster, because they use them
- successfully tested on:
- Matrox Millenium (2064W), 4096KB, PCI
- S3 Vision864, 2048KB, VLB
- S3 ViRGE/DX, 4096KB, PCI
- Trident 9000i, 512KB, ISA
- Trident 9440AGi, 1024KB, VLB
* these are the chips, which I know it works on
Initialising Functions:
-----------------------
InitGraphix ......... initializes the graphics-library
InitGraphixGrafik ... text-window for graphics-mode selection
Drawing primitives:
-------------------
- putpixel .......... draws a pixel
- line .............. draws a line
- lineH ............. draws a horizontal line
- rectangle ......... draws a rectangle
- bar ............... draws a filled rectangle
- barXOR ............ draws a filled rectangle with background XOR
color
- circle ............ draws a circle
- circlefill ........ draws a filled circle
- ellipsefill ....... draws a filled ellipse
Image functions:
----------------
- moverect .......... moves a rectangular area (VRAM-->VRAM)
- getimage .......... saves an image in memory (VRAM-->RAM)
- putimage .......... displays an image (RAM-->VRAM)
- putimageHG ........ displays a transparent image (RAM-->VRAM)
- zoomimage ......... scales and displays an image (RAM-->VRAM)
- zoomimageHG ....... scales and displays a transparent image
(RAM-->VRAM)
- createimage ....... allocates space in memory for an image
(RAM-->VRAM)
- removeimage ....... removes an image from memory
- LoadImageBMP ...... loads a BMP-File (supported formats: 1, 4, 8,
24bit)
- LoadImageGIF ...... loads a GIF-File (supported formats: 1, 4, 8 bit)
- LoadImagePCX ...... loads a PCX-File (supported formats: 1, 8, 8-grey,
24bit)
- LoadImageTGA ...... loads a TGA-File (supported formats: 8, 16, 24bit,
uncompressed and compressed)
* All images are processed using 32bit-Segments
Font functions:
---------------
- LoadFont .......... loads a font (Windows-FNT-File)
- RemoveFont ........ removes a font from memory
- outtext ........... displays formatted text (#10=next line, #13=return
to first position)
- charheight ........ returns charheight (heigth of one line)
- textheight ........ returns height of a formatted text
* Upto 255 fonts can be loaded at one time
====================================================================================================