OpenTK is a .Net library that provides a wrapper to OpenGL, OpenCL and OpenAL. Here are the first steps to get started using it with IronPython:
- Download and install OpenTK. The .Net assembly files of OpenTK can be found in its OpenTK\1.0\Binaries\OpenTK\Release directory.
- Create an empty IronPython solution in Visual Studio.
- Place OpenTK.dll in the directory of the Python source file.
- Paste the source code given below into the Python source file.
- Run. You should see a colored triangle. Press ESC to quit.
Tried with: OpenTK 1.0, IronPython 2.7.3, Visual Studio Express 2012 and Windows 7 x64
Image may be NSFW.
Clik here to view.

Clik here to view.
