mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-24 04:20:21 +00:00
.. | ||
__init__.py | ||
canvas.py | ||
interactive.py | ||
main.py | ||
README.md | ||
renderer.py | ||
screenshot.png | ||
shaders.py | ||
simple.glsl | ||
utility.py | ||
window.py |
This folder defines a small demo application that uses PyQt and newish version of PyOpenGL.
- 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
andinit
. 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 fromsetup.py