Subversion Repositories shark

Rev

Rev 1134 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1134 giacomo 1
--------------------------------------
2
MESA Demo (reflect)
3
 
4
by
5
 
6
Giacomo Guidi	<giacomo@gandalf.sssup.it>
7
 
1139 giacomo 8
Last update 20/03/2003
1134 giacomo 9
--------------------------------------
10
 
11
This is a simple test demo for the MESA (5.0)
12
libraries, the low level graphic drivers is
13
the SVGA (from the SVGAlib)
14
 
15
The cards actually supported are:
16
 
17
GEFORCE TNT TNT2 - driver name NV3
18
RAGE128 RADEON - driver name R128
19
SAVAGE VIRGE - driver neme SAVAGE
20
 
1139 giacomo 21
You need a test.png file present in the
22
same directory of the demo. Remember that
23
the file system support only a DOS FAT16 fs.
24
 
25
The PNGlib will load this file and it
26
will be used as a texture.
27
 
1134 giacomo 28
--------------------------------------
29
 
30
The demo is composed by:
31
 
32
MAKEFILE     The makefile used to compile the application
33
README.TXT   This file
1139 giacomo 34
INITFILE.C   The init file (with fs initialization)
35
MESAREF.C    The MESA Demo
36
TEST.PNG     The PNG texture image
1134 giacomo 37
 
38
--------------------------------------
39
 
40
- To specify your card change the line
41
 
42
#define CARD <driver name>
43
 
44
- The demo calls the grx and off-screen Mesa functions.
45
The resolution must be 16 bitsperpixel (64K colors) and
46
the graphic access mode must be linear.
47
 
48
- There are two buffers
49
 
50
	The video buffer (video_buf)
51
	The virtual buffer (rgb_565_buf)
52
 
53
	copy_videomem_16to16 links these buffers
54
 
1139 giacomo 55
- If the texture load fails, sys_end() is called
1134 giacomo 56