Skip to content
D gamedev toolkit. 3D maths, language-friendly wrappers, stb_truetype port, etc...
D
Latest commit 28e0f05 @p0nce p0nce Merge pull request #154 from clinei/sdl2-audio
SDL2 audio: added play, pause, lock and unlock wrappers

README.md

GFM Build Status

logo

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: http://d-gamedev-team.github.io/gfm/

See the changelog here to upgrade: https://github.com/d-gamedev-team/gfm/wiki/Changelog

License

Public Domain (Unlicense).

How to use GFM?

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

   {
      "dependencies": {
        "gfm:math": "~>5.0"
      }
   }

See the examples/ directory, or https://github.com/p0nce/aliasthis as an example of a game.

Changelog

https://github.com/d-gamedev-team/gfm/wiki/Changelog

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 and 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.

Dependencies

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 http://code.dlang.org to discover lots of useful libraries for your programs.

Something went wrong with that request. Please try again.