gfm 4.0.2

D gamedev toolkit. 3D maths, OpenGL/SDL/FreeImage/Assimp/ENet wrapper, stb_image port.

To use this package, put the following dependency into your project's dependencies section:


GFM Build Status

<img alt="logo" src="" width="200">

GFM is a lightweight library to ease the creation of video games / multimedia applications with the D programming language.

(Oudated) documentation and overview can be found here:


Public Domain (Unlicense).

How to use GFM?

Add the sub-package you are interested in in your dub.json:

      "dependencies": {
        "gfm:math": "~>4.0"

See the examples/ directory, or as an example of a game.


Who is using GFM?

Why using GFM?

  • GFM has low churn and has been maintained since 2012.
  • GFM primarily provides math primitives that are useful for games like vectors/matrices/quaternions in the gfm:math a,d gfm:integers package.
  • Other subpackages are wrappers: transparent layers that expose the C libraries objects, turn every error code into an D exception and makes it easier to use the library correctly. They do almost nothing and perhaps you don't need them.


You absolutely don't need to use the whole of GFM. Pick just what you need to minimize the amount of dependencies.

There is an ongoing work to delete things in GFM that exist elsewhere but better. See to discover lots of useful libraries for your programs.

  • Guillaume Piolat / ponce: main author
  • Gerbrand Kamphuis / vuaru: many fixes
  • Kyle Hunter / Kelet: ENet wrapper
  • Francesco Cattoglio: OpenGL wrapper improvements
  • John D. Cook: SimpleRNG author
  • Sam Hocevar: many bits of code
  • Daniel Cousens / RommelVR: GL fix
  • Daniele Bondi / maeriden: Euler angles fix
  • H. S. Teoh / quickfur: wideint improvements
Sub packages:
gfm:core, gfm:math, gfm:image, gfm:integers, gfm:net, gfm:enet, gfm:assimp, gfm:opengl, gfm:sdl2, gfm:freeimage, gfm:logger
gfm:image, gfm:core, gfm:net, gfm:opengl, gfm:sdl2, gfm:integers, gfm:logger, gfm:math, gfm:assimp, gfm:enet, gfm:freeimage
7.0.7 2019-Mar-11
7.0.6 2019-Feb-25
7.0.5 2018-Nov-09
7.0.4 2018-Nov-07
7.0.3 2018-Nov-07
Show all 101 versions
Download Stats:
  • 70 downloads today

  • 438 downloads this week

  • 1727 downloads this month

  • 28875 downloads total

Short URL: