Brian Paul | b43a828 | 2002-03-08 19:27:17 +0000 | [diff] [blame^] | 1 | Mesa 4.0.1 DOS/DJGPP Port version 0.3
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 3 |
|
| 4 |
|
| 5 |
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 6 | Description:
|
| 7 | ~~~~~~~~~~~~
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 8 |
|
Brian Paul | b43a828 | 2002-03-08 19:27:17 +0000 | [diff] [blame^] | 9 | Well, guess what... this is the DOS port of MESA 4.0, for DJGPP fans... Whoa!
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 10 |
|
| 11 |
|
| 12 |
|
| 13 | Legal:
|
| 14 | ~~~~~~
|
| 15 |
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 16 | MESA copyright applies.
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 17 |
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 18 |
|
| 19 |
|
| 20 | Installation:
|
| 21 | ~~~~~~~~~~~~~
|
| 22 |
|
| 23 | Type "make -f Makefile.DJ" to compile the libraries. Long filename support is
|
| 24 | required during compilation. The examples are not built automagically (see
|
| 25 | Pitfalls below).
|
| 26 |
|
| 27 | Tested on:
|
| 28 | CPU: Intel Pentium w/ MMX @166 MHz
|
| 29 | Mainboard: ViA Apollo VP2 w/ 128 MB SDRAM
|
| 30 | Video card: Matrox Millenium 2064W w/ 2048 kB WRAM, BIOS v3.0
|
| 31 | DJGPP: djdev 2.03
|
| 32 | gcc v3.0.3
|
| 33 | make v3.79
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 34 |
|
| 35 |
|
| 36 |
|
| 37 | libGL (the core):
|
| 38 | ~~~~~~~~~~~~~~~~~
|
| 39 |
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 40 | Of course, MESA 4.0 core sources are required. It will probably work with
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 41 | MESA 3.5, but not a chance with earlier versions due to major changes to the
|
| 42 | MESA driver interface and the directory tree. All should compile succesfully.
|
| 43 |
|
| 44 | The driver has its origins in ddsample.c, written by Brian Paul and found by
|
| 45 | me in MESA 3.4.2. I touched almost all the functions, changing the coding
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 46 | style :-( Sorry!
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 47 |
|
| 48 | Pitfalls:
|
| 49 | 1. The current version supports only RGB[A] modes, for it made no sense to me
|
| 50 | to endorse color-index (aka palette) modes.
|
Brian Paul | b43a828 | 2002-03-08 19:27:17 +0000 | [diff] [blame^] | 51 | 2. Single-buffered is not allowed at all. Until I can find a way to use *REAL*
|
| 52 | hardware acceleration, it won't get implemented.
|
| 53 | 3. Another weird "feature" is that buffer width must be multiple of 4 (I'm a
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 54 | lazy programmer and I found that the easiest way to keep buffer handling at
|
| 55 | peak performance ;-).
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 56 |
|
| 57 |
|
| 58 |
|
| 59 | libGLU:
|
| 60 | ~~~~~~~
|
| 61 |
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 62 | Mesa GLU sources are required. No comment!
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 63 |
|
| 64 |
|
| 65 |
|
| 66 | libGLUT (the toolkit):
|
| 67 | ~~~~~~~~~~~~~~~~~~~~~~
|
| 68 |
|
| 69 | Well, this "skeletal" GLUT implementation is not mine. Thanks should go to
|
| 70 | Bernhard Tschirren, Mark Kilgard, Brian Paul and probably others (or probably
|
| 71 | not ;-). I only changed it to be self-standing (Allegro-free). The keyboard,
|
| 72 | mouse and timer drivers were inspired from an old project of mine (D3Xl) and
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 73 | fixed with some Allegro "infusions"; I deeply thank to Shawn Hargreaves et co.
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 74 |
|
| 75 | My keyboard driver used only scancodes, but since GLUT requires ASCII values
|
| 76 | for keys, I borrowed the translation tables (and maybe more) from Allegro.
|
| 77 | Ctrl-Alt-Del (plus Ctrl-Alt-End, for Windows users) will shut down the GLUT
|
| 78 | engine unconditionally: it will raise SIGINT, which in turn will call the
|
| 79 | destructors (let's hope), thus cleaning up your/my mess ;-)
|
| 80 |
|
| 81 | The mouse driver is far from complete (lack of positioning, drawing, etc),
|
| 82 | but is enough to make almost all the demos work.
|
| 83 |
|
| 84 | The timer is pretty versatile for it supports multiple timers with different
|
| 85 | frequencies. It may not be the most accurate timer in the known universe, but
|
| 86 | I think it's OK. Take this example: you have timer A with a very high rate,
|
| 87 | and then you have timer B with very low rate compared to A; now, A ticks OK,
|
| 88 | but timer B will probably loose precision!
|
| 89 |
|
| 90 | As an addition, stdout and stderr are redirected and dumped upon exit. This
|
| 91 | means that printf can be safely called during graphics, but all messages come
|
| 92 | in bulk! A bit of a hack, I know, but I think it's better than to miss them
|
| 93 | at all.
|
| 94 |
|
| 95 | Window creating defaults: 640x480x16 at (0,0), 8-bit stencil, 16-bit accum.
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 96 | However, the video mode is chosen in such a way that first window will fit.
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 97 |
|
| 98 |
|
| 99 |
|
| 100 | History:
|
| 101 | ~~~~~~~~
|
| 102 |
|
| 103 | v0.1 feb-2002 initial release
|
Brian Paul | e0193a9 | 2002-02-23 17:11:27 +0000 | [diff] [blame] | 104 | v0.2 feb-2002 + fast triangle rasterizers
|
| 105 | + enabled sw and 1.3 extensions
|
| 106 | + hardware acceleration: FreeBE/AF
|
| 107 | + single-buffer modes (15-, 16-, and 32-bit)
|
| 108 | * video mode is set by CreateVisual, not MakeCurrent
|
| 109 | * internal changes to support multi-buf (unfinished)
|
| 110 | ! fixed some alpha issues... (thanks, Brian)
|
| 111 | + glut has now an internal timer
|
| 112 | * glut changed to support multi-window (unfinished)
|
| 113 | ! minor PC_HW corrections
|
Brian Paul | b43a828 | 2002-03-08 19:27:17 +0000 | [diff] [blame^] | 114 | v0.3 mar-2002 - removed FreeBE/AF code
|
| 115 | - removed single-buffer modes
|
Brian Paul | db41d2e | 2002-02-12 03:24:56 +0000 | [diff] [blame] | 116 |
|
| 117 |
|
| 118 |
|
| 119 | Contact:
|
| 120 | ~~~~~~~~
|
| 121 |
|
| 122 | Name: Borca Daniel
|
| 123 | E-mail: dborca@yahoo.com
|
| 124 | WWW: http://www.geocities.com/dborca/
|