OpenMask and OpenGL


PhotoPhoto
The Animation



In this chapter,we try to explain how we can draw an object in OpenGL directly.


Download this file and uncompress : OpenGLMask.tar.gz (tested on Mandrake 9.1)


The Method

Details of the archive :
      main.cxx                                   //A classic OpenMask main file
      PsXEventHandler.h                          //Files which contain the mouse and keyboard events
      PsXEventHandler.cxx
      PsvOpenGLParamSensitiveInputHandler.h      //Files which contain the OpenGL code
      PsvOpenGLParamSensitiveInputHandler.cxx
      PsParam.h                                  //Files which contain parameters for the OpenGL object
      PsParam.cxx
      scene.OpenMASK3                            //The OpenMask simulation tree
      1Window_1Viewport.3DVis.OpenMASK3
      cube.pro                                   //Generate the Makefile
      Makefile

The Result

Compile and see the animation. As you can see a polygon is turning round and its color change.
To quit the application press the escape button.

On your console you can see :


Return to the summary