Quantcast
Viewing all articles
Browse latest Browse all 4

How to get started with OpenTK using IronPython

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:

  1. Download and install OpenTK. The .Net assembly files of OpenTK can be found in its OpenTK\1.0\Binaries\OpenTK\Release directory.
  2. Create an empty IronPython solution in Visual Studio.
  3. Place OpenTK.dll in the directory of the Python source file.
  4. Paste the source code given below into the Python source file.
  5. 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.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 4

Trending Articles