home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / vopengl / readme
Encoding:
Text File  |  1998-11-20  |  2.6 KB  |  65 lines

  1.                    V OpenGL support
  2.             November 21, 1998
  3.  
  4.  
  5. OpenGL support has now been included in the regular release
  6. of V (starting with V 1.20). Is should work exactly like
  7. the previous version included separately.
  8.  
  9. However, you should now also be able to include regular
  10. V Canvases, as well as OpenGL canvases. In the previous
  11. version, the OpenGl canvas was a replacement for the
  12. standard vCanvasPane. In this version, it is properly
  13. derived from vCanvasPane.
  14.  
  15. I've tried to make the OpenGL canvas easy to use. The
  16. best way (for now) to learn how to use the class is
  17. to look at the sample programs included here.
  18. To use it, compile your code, and link it
  19. with the V library and the V OpenGL library.
  20.  
  21. This version has been tested on Linux with Mesa 2.6.
  22. It used to run on Silicon Graphics machines, and there
  23. is no reason to assume that has changed.
  24.  
  25. When I installed Mesa, I had to add some symbolic
  26. links to have it link like standard OpenGL, but you
  27. could also change the library switches in the Makefiles.
  28.  
  29. There are a several of samples, some derived from GLUT,
  30. others from the Mesa distribution. Each sample is included
  31. in a separate directory. There are mingw32 makefiles for MS-Windows
  32. for all examples, and Linux makefiles for many.
  33.  
  34. The documentation for vBaseGLCanvasPane is still incomplete. The
  35. best way to use it is to look at <v/vbglcnv.h> and the examples.
  36.  
  37. I've only been able to get the Windows version to work correctly
  38. under mingw32 and Borland C++ 5.0. Microsoft C++ 4.0 couldn't find
  39. the proper link libraries. If someone knows how to get this
  40. problem solved, please let me know.
  41.  
  42. The Mingw32 distribution requires proper .h files. They are included
  43. in the gnuwin32 directory. The OpenGL header
  44. files I provide are edited to remove references to CALLBACK
  45. parameters, which means the tesselation stuff doesn't work.
  46.  
  47. The Windows version doesn't seem to support Indexed color mode,
  48. even though the definitions are there, and some code looks
  49. like it generates a correct graphics context. The problem
  50. for now seems to be there is no equivalent of glutSetColor to
  51. set a color index. Does ANYONE in the whole world actually
  52. use Indexed color? If so, then I'll look at glut and see if
  53. I can add indexed color support.
  54.  
  55. I am working on developing a new vOpenGLCanvasPane class with a
  56. V user. The new class will have built in support for some
  57. vector stuff and some lighting stuff. Would anyone like
  58. some of the glut shapes: spheres, cubes, etc? They shouldn't be
  59. too hard to add, but I don't know if they really get used.
  60.  
  61. Thanks,
  62.  
  63. Bruce Wampler
  64. bruce@objectcentral.com
  65.