Subversion Repositories shark

Rev

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

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