Language bindings

From OpenGL Wiki
Jump to navigation Jump to search

OpenGL Language Bindings[edit]

OpenGL is supported on every major operating system, it works with every major windowing system, and it is callable from most programming languages. It offers complete independence from network protocols and topologies.

All OpenGL applications produce consistent visual display results on any OpenGL API-compliant hardware, regardless of operating system or windowing system.

Ada[edit]

Common Lisp[edit]

  • cl-opengl is a set of CFFI bindings to OpenGL. It works with any implementation that supports CFFI and also includes optional bindings to GLU and GLUT.
  • cl-glfw includes, in addition to the GLFW bindings, a set of automatically generated OpenGL bindings, and a hand-written interface to GLU. (last update in mid-2008)

C#[edit]

  • LTP.Interop.OpenGL provides unsafe low-level bindings for OpenGL Core 3.2 - 4.6, and GLFW 3.3.2.
  • OpenGL4Net is a simple wrapper of OpenGL 4.3 for .NET platform.
  • OpenGL4Csharp is a wrapper for modern OpenGL 4.5 and includes several math helpers (Vector, Quaternion, Matrix, etc) as well as helpful constructs such as loading textures and shaders.
  • OpenGLDotNet is a full-featured OpenGL, GLU, GLUT/FREEGLUT, DevIL/ILU/ILUT wrapper, supporting up to OpenGL version 4.5 and over 610+ OpenGL Extensions as of April 2016.
  • OpenGL.Net is a complete wrapper library supporting OpenGL 4.6, OpenGL ES 3.2, EGL, WGL and GLX APIs. Exposes all enumerations and commands managed by the Khronos registry.
  • OpenTK is a low-level wrapper for OpenGL, OpenAL and OpenCL. It also provides windowing and input.
  • Silk.NET is a collection of bindings for OpenGL, OpenAL, and Vulkan among many other APIs. Works with C# and F#.
  • The Tao Framework for .NET is a collection of bindings to facilitate cross-platform game-related development utilizing the .NET platform.

Delphi/Free Pascal (Object Pascal)[edit]

  • GlScene Delphi and Lazarus/FreePascal. High level (GUI) components and bindings, only for 32 bit compilers, CrossPlatform with many designers, options and support for multiple 3D and image formats.
  • FreePascal CrossPlatform OpenGL headers are included for all platforms and CPUs, based on those from Delphi3D.
  • Lazarus IDE Has support for OpenGL using TOpenGlControl and other components.
  • Delphi OpenGL Bindings (german)

Fortran[edit]

  • FORTRAN OpenGL (f90gl) bindings is a public domain implementation of the official Fortran 90 bindings for OpenGL. With the new bindings, a Fortran programmer can write standard-conforming graphics applications that will be portable over most computing platforms. The current version is Version 1.2.3 This version implements the interface for OpenGL 1.2, GLU 1.2, GLUT 3.7, and several extensions. It supports several Unix workstations and Windows 95/98/NT. It is also the Fortran interface for Mesa.

FreeBASIC[edit]

Haskell[edit]

Java[edit]

  • Java OpenGL (JOGL) bindings - the JOGL project hosts an implementation of the Java Bindings for OpenGL (JSR-231), and is designed to provide hardware-supported 3D graphics to applications written in Java. JOGL provides full access to the APIs in the OpenGL 1.3 - 3.0, 3.1 - 3.3, ≥ 4.0, ES 1.x and ES 2.x specification as well as nearly all vendor extensions, and integrates with the AWT and Swing widget sets. Coding demos are available.
  • Lightweight Java Game Library is aimed at professional and amateur Java programmers alike with support for OpenGL, OpenAL, Gamepads, Steering wheel and Joysticks.
  • Java 3D - Oracle's retained mode library layered on OpenGL.
  • OpenGL for Java (GL4Java)
  • jGL is a 3D graphics library for the JavaTM Programming Language with an API which is similar to that of OpenGL.
  • Java 3D for IRIX
  • JavaOpenGL 1.0a3 JavaOpenGL is a set of Java classes that let you program the OpenGL API on a Windows 95 or Windows NT box.

Lua[edit]

  • LuaGl support GL (old school 1.0/20 mainly), GLU, sources found at Git.

Perl[edit]

PowerBASIC[edit]

Note: File archives with headers are visible after login on linked site

Python[edit]

  • ModernGL is a "100% Pythonic" binding that focuses on modern OpenGL techniques with minimal code. It claims to be simpler and faster than PyOpenGL.
  • PyOpenGL is a cross-platform open source Python binding to the standard OpenGL API providing 2-D and 3-D graphic drawing. PyOpenGL supports the GL, GLU, and GLUT libraries. The library can be used with the Tkinter, wxPython, FxPy, and Win32GUI windowing libraries (or almost any windowing library which can provide an OpenGL context).
  • PyOpenGLng is a new OpenGL Python binding which generates the requested OpenGL API from the OpenGL XML API Registry and use an automatic translator to map the C API to Python. The interface between C and Python is supported by CFFI and ctypes. It also provides a high level API compatible with Qt5.
  • pyglfw-cffi is a GLFW CFFI binding for Python.
  • PyGLUT makes GLUT available from the Python interpreter.

Racket[edit]

  • OpenGL package: Exhaustive Racket bindings to OpenGL. An automatically-generated wrapper around the OpenGL library.
  • SGL libraries provide access to the rendering functions of OpenGL 1.5 and GLU 1.3 libraries.

Ruby[edit]

ThinBASIC[edit]

  • Allows use of OpenGL up to version 2.1 and GLU in default installation
  • Supports TBGL higher level abstraction over OpenGL

Visual Basic[edit]