Subversion Repositories shark

Rev

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

--------------------------------------
MESA Demo (reflect)

by

Giacomo Guidi   <giacomo@gandalf.sssup.it>

Last update 20/03/2003
--------------------------------------

This is a simple test demo for the MESA (5.0)
libraries, the low level graphic drivers is
the SVGA (from the SVGAlib)

See drivers/svga/readme for supported cards

You need a test.png file present in the
same directory of the demo. Remember that 
the file system support only a DOS FAT16 fs.

The PNGlib will load this file and it
will be used as a texture.

--------------------------------------

The demo is composed by:

MAKEFILE     The makefile used to compile the application
README.TXT   This file
INITFILE.C   The init file (with fs initialization)
MESAREF.C    The MESA Demo
TEST.PNG     The PNG texture image

--------------------------------------

- To specify your card change the line

#define CARD <driver name>

- The demo calls the grx and off-screen Mesa functions. 
The resolution must be 16 bitsperpixel (64K colors) and 
the graphic access mode must be linear.

- There are two buffers

        The video buffer (video_buf)
        The virtual buffer (rgb_565_buf)

        copy_videomem_16to16 links these buffers

- If the texture load fails, sys_end() is called