home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / SVGALIB / SVGALIB1.TAR / svgalib / demos / README < prev    next >
Encoding:
Text File  |  1995-02-22  |  3.2 KB  |  107 lines

  1.  
  2. Demo programs in this directory:
  3.  
  4. vgatest
  5.  
  6.     Mode test program.
  7.  
  8. fun
  9.  
  10.     Random moving pixels accumulate in clusters. Uses virtual screens
  11.     for frame animation.
  12.  
  13. mousetest
  14.  
  15.     Simple program to test mouse functionality. Left button changes
  16.     color, right button exits.
  17.  
  18. keytest
  19.  
  20.     Similar program to test low-level keyboard interface.
  21.  
  22. scrolltest
  23.  
  24.     Smooth scrolling demo. Uses three different techniques. Useful for
  25.     testing Mode X functionality (not that I would recommend it over
  26.     320x200x256 linear).
  27.  
  28. speedtest
  29.  
  30.     Video memory speed tester.
  31.  
  32. testgl
  33.  
  34.     Demo program for vgagl framebuffer library.
  35.  
  36. testlinear
  37.  
  38.     Program to test linear addressing on Cirrus cards (and on Mach32).
  39.  
  40. testaccel
  41.  
  42.     Program to test the old blit functions in a screen mode. Checks
  43.     the 8-bit wide color lookup tables on Mach32's with type 2 DACs
  44.     as well. [I think '6bpp' and '8bpp' are silly names for the 8-bit
  45.     LUT thing -- bpp is bits per pixel, in the framebuffer - HH :-)]
  46.  
  47. accel
  48.  
  49.     Test new-style accelerated functions.
  50.  
  51.     Results on a Cirrus GD5434-E with 2Mb:
  52.     640x480x256 60 Hz
  53.         FillBox: 200.3 Mpixels/s (200.3 Mbytes/s)
  54.         ScreenCopy: 51.0 Mpixels/s (51.0 Mbytes/s)
  55.         Scroll Demo: 50.5 Mpixels/s (50.5 Mbytes/s)
  56.         FillBox XOR: 83.2 Mpixels/s (83.2 Mbytes/s)
  57.     320x200x256 70 Hz
  58.         FillBox: 200.1 Mpixels/s (200.1 Mbytes/s)
  59.         ScreenCopy: 52.3 Mpixels/s (52.3 Mbytes/s)
  60.         Scroll Demo: 51.2 Mpixels/s (51.2 Mbytes/s)
  61.         FillBox XOR: 87.1 Mpixels/s (87.1 Mbytes/s)
  62.     640x480x32K 60 Hz
  63.         FillBox: 90.9 Mpixels/s (181.8 Mbytes/s)
  64.         ScreenCopy: 23.1 Mpixels/s (46.3 Mbytes/s)
  65.         Scroll Demo: 23.0 Mpixels/s (46.1 Mbytes/s)
  66.         FillBox XOR: 37.2 Mpixels/s (74.5 Mbytes/s)
  67.     640x480x16M (32-bit) 60 Hz
  68.         FillBox: 35.5 Mpixels/s (142.3 Mbytes/s)
  69.         ScreenCopy: 9.3 Mpixels/s (37.3 Mbytes/s)
  70.         Scroll Demo: 9.2 Mpixels/s (37.1 Mbytes/s)
  71.         FillBox XOR: 14.6 Mpixels/s (58.6 Mbytes/s)
  72.  
  73.     You're encouraged to send in more data (send to hhanemaa@cs.ruu.nl).
  74.  
  75. There's also a 3D demo binary included in this directory. It has been in a
  76. similar state for several months now, but I'm planning to get some work
  77. done (although it probably won't be the amazing multi-player networked
  78. 3D lightsource-shaded real-time VGA virtual reality simulation). I'll
  79. release the source code at some point (when it has some degree of
  80. flexibility). I'm sorry that there's no scene description file; it will
  81. come. So now you know you can do this kind of thing in Linux. And it's
  82. practically 100% C code.
  83.  
  84. You can set the graphics mode to be used with the GSVGAMODE environment
  85. variable (e.g. G640x480x256). All linear 256 color, 32K color and 16M color
  86. modes are supported, with page flipping used if available. Planar 256 color
  87. VGA modes also work. This should do 800x600 full screen 3D animation at near
  88. 10 fps with a good system.
  89.  
  90. Request: Please report if page flipping goes wrong on a particular chipset
  91. (e.g. ET4000, Trident) in 320x200x256. Also 32-bit pixel truecolor
  92. modes don't work correctly, this will be fixed.
  93.  
  94. The user interface is somewhat primitive at this point:
  95.  
  96. - Use the mouse to rotate.
  97.  
  98. - Left button accelerates, right decelerates.
  99.  
  100. - Press w to move upwards, s to go down again.
  101.  
  102. - Use r and f to control the zoom factor.
  103.  
  104. Note that the light source rotates quickly at an infinite distance. This
  105. is not something that will easily occur naturally (as far as I know)...
  106.  
  107.