This program (drawType) gives an example of how to use the vector graphics elements provided by the core gamepad libraries to render gamepads in OpenGL. More...
![]() |
This program (drawType) gives an example of how to use the vector graphics elements provided by the core gamepad libraries to render gamepads in OpenGL.
Example usage:
% cd ~/svn/gamepad-opengl/out/bin
% ./drawType ~/svn/gamepad/data/ "playstation-3"
That usage assumes that you've got an svn directory in your home directory that contains both projects (gamepad and gamepad-opengl), and the drawType program uses the gamepad data directory from your local version of the gamepad repository.
That example would draw a Playstation 3 controller (it has the "playstation-3" logical name).
See the wavepacket-lib project in sourceforge for more information on vector graphics (vgfx library). The OpenGL vgfx drawer is contained in the wave-glut project in sourceforge.