gfm 6.2.12

D gamedev toolkit. 3D maths, 128-bit integers, OpenGL/SDL/FreeImage/Assimp wrapper, coloured logger

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.

Documentation and overview are here:

See the changelog here to upgrade:


Public Domain (Unlicense).

How to use GFM?

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

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

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


Who is using GFM?

Why use GFM?

  • GFM has a changelog and respects SemVer,
  • 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 package,
  • Also provide arbitrary sized integers, fixed point numbers, and half-float numbers in gfm:integers,
  • 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.

So you'll find that GFM actually decreases in size over time.

Daniele Bondi / maeriden: Euler angles fix, Francesco Cattoglio: OpenGL wrapper improvements, John D. Cook: original SimpleRNG author, Steven Dwy / Yoplitein: sdl_mixer wrapper, documentation improvements, Daniel Cousens / RommelVR: GL fix, Gerbrand Kamphuis / vuaru: many fixes, Kyle Hunter / Kelet: ENet wrapper, Sam Hocevar: original author of some bits of code, Guillaume Piolat / ponce: main author of GFM, Ryan Roden-Corrent / rcorre: math package improvements, Tanel Tagaväli / clinei: SDL audio wrapper, H. S. Teoh / quickfur: wideint improvements
Sub packages:
gfm:core, gfm:math, gfm:integers, gfm:assimp, gfm:opengl, gfm:sdl2, gfm:freeimage, gfm:logger
gfm:integers, gfm:core, gfm:math, gfm:freeimage, gfm:sdl2, gfm:opengl, gfm:logger, gfm:assimp
7.0.0 2017-Dec-25
6.2.13 2017-Dec-04
6.2.12 2017-Oct-15
6.2.11 2017-Oct-15
6.2.10 2017-Jun-15
Show all 101 versions
Download Stats:
  • 5 downloads today

  • 174 downloads this week

  • 731 downloads this month

  • 18271 downloads total