OpenSubdiv/python/demo
Philip Rideout bb6fd9489b update docs
2013-02-06 21:27:16 -08:00
..
__init__.py Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
canvas.py Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
interactive.py CMake now invokes distutils correctly 2013-02-06 19:24:40 -08:00
main.py update docs 2013-02-06 21:27:16 -08:00
README.md Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
renderer.py Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
screenshot.png Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
shaders.py CMake now invokes distutils correctly 2013-02-06 19:24:40 -08:00
simple.glsl Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
utility.py Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00
window.py Revamped Python bindings that use SWIG 2013-02-04 21:10:58 -08:00

This folder defines a small demo application that uses PyQt and newish version of PyOpenGL.

Screenshot

  • main.py All calls to the OSD wrapper go here. This creates a QApplication and periodically pushes new VBO data into the renderer. (see below)
  • renderer.py Defines the renderer; implements draw and init. All OpenGL calls are made in this file, and there's no dependency on Qt or OSD.
  • canvas.py Inherits from QGLWidget and calls out to the renderer object (see above)
  • shaders.py Implements a miniature FX format by extracting named strings from a file and pasting them together
  • simple.glsl Specifies the GLSL shaders for the demo using the miniature FX format
  • utility.py Some linear algebra stuff to make it easier to use Modern OpenGL
  • window.py Inherits from QMainWindow, instances a canvas object
  • __init__.py Exports main into the package namespace to make it easy to run the demo from setup.py