Bindings

From D Wiki
Revision as of 13:23, 6 May 2017 by Vladimir Panteleev (talk | contribs) (Add source code translation section)
Jump to: navigation, search

Binding is a procedure that converts header files, function prototypes, and variable declarations to from another language to D.

Projects

Projects and repositories for collecting / maintaining D bindings:

Binding generators

Projects which automate generating D bindings:

C/C++ to D

Title / InfoDescriptionLicensePlatform
Icon dpackage 48.png
Migration tool to aid in converting C header files Windows
Icon dpackage 48.png
A tool for converting C and Objective-C headers to D modules Boost Software License 1.0 Posix
Icon dpackage 48.png
Simplified Wrapper and Interface Generator
Icon dpackage 48.png
High-level wrapper generator Boost License 1.0.


Objective-C to D

D to C/C++

Bindings

Compression & Encryption

Title / InfoDescriptionLicensePlatform
Icon dpackage 48.png
D version of the C headers for openssl MIT Windows/POSIX
Icon dpackage 48.png
Interface to LZMA compression library Windows/POSIX
Icon dpackage 48.png
Interface to GNUTLS library LGPL


Multimedia & Games

Title / InfoDescriptionLicensePlatform
Icon dpackage 48.png
MediaInfo supplies technical and tag information about your video or audio files. GPL/LGPL Windows
Icon dpackage 48.png
Libsndfile is a C library for reading and writing files containing sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard library interface. It is released in source code format under the Gnu Lesser General Public License. LGPL Windows/POSIX
Icon dpackage 48.png
Allegro 4 and Allegro 5 are cross-platform, open source, game programming libraries, primarily for C and C++ developers.
Icon dpackage 48.png
DerelictOrg is a collection of D bindings to C shared (dynamic) libraries which are useful for multimedia applications, with a heavy bias toward game development-related libraries.

Bindings:

  • ALURE
  • ASSIMP
  • DevIL
  • FreeImage
  • FreeType
  • GLFW
  • Lua
  • ODE
  • OpenAL
  • OpenGL
  • PhysicsFS
  • SDL2
  • SFML2
  • Vorbis
  • libogg
  • libpq

Older versions:

Icon dpackage 48.png
Mediastreamer2 is a powerful and lightweighted streaming engine specialized for voice/video telephony applications.
Icon dpackage 48.png
AntTweakBarD is a binding to AntTweakBar which is a multi-render-engine (D3D/OpenGL) GUI tweaking library. zlib/libpng


Source code translators

  • cpp2d - C++ to D converter (included with Visual D)
  • idl2d - IDL / C++ header file to D converter

See also

External links