dagon 0.2.0

Game framework for D

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


Build Status DUB Package DUB Downloads License


Dagon is a 3D/2D game development framework for D. It is a work-in-progress reincarnation of DGL with several architecture improvements. The most significant changes are the following:

  • Based on SDL2
  • Ownership memory model - every object belongs to some object (owner), and deleting the owner will delete all of its owned objects. This allows semi-automatic memory management - you have to manually delete only root owners
  • Entity-component model that allows game objects behave differently and combine many behaviours
  • Scene management. Any scene has its own assets, entities and logical context
  • Live asset reloading - asset can be autimatically reloaded when the file is modified with external application
  • OBJ models support
  • IQM format support
  • New material system with simple abstract API and different backends (fixed pipeline, PBR, non-PBR, etc.). Only fixed pipeline backend is implemented at the moment
  • More texture formats support: PNG, JPG, TGA, BMP
  • TTF fonts are now compatible with asset manager and VFS
  • Box container support.

Dagon is still under development and doesn't have eye candy features yet. It's just a framework that you can use to build your own OpenGL-based graphics pipeline - just define your own Drawables, Behaviours and Scenes. In future, some functionality from DGL will be ported to Dagon. Currently it is not recommended to use Dagon in production due to unstable API.


Dagon is based on OpenGL 1.3 + a number of common extensions, and should run virtually on any hardware. Currently we are not considering implementing OpenGL 3.x/4.x renderer or adding Vulkan support.

Dagon is known to work on Windows, Linux, FreeBSD and OSX.

To use Dagon, a number of libraries should be installed, namely SDL2 and Freetype. If you don't have them installed system-wide (which is a common case on Windows), you can use the libraries provided here. Currently we provide libraries only for Windows and Linux. Download an archive for your system and place the lib folder in your project's working directory. Dagon will automatically detect and try to load them. If there are no local libraries in lib directory, it will use system ones.


A test application that demonstrates Dagon's features is hosted here. If you are starting from scratch, we recommend to use it for learning purposes.


Not available yet, sorry.


Copyright (c) 2016-2017 Timur Gafarov. Distributed under the Boost Software License, Version 1.0 (see accompanying file COPYING or at http://www.boost.org/LICENSE10.txt).

Authors:Timur Gafarov


0.2.0 2017-Aug-11
0.1.1 2017-Jun-08
0.1.0 2017-Jun-08
0.0.3 2017-Apr-10
0.0.2 2017-Apr-05
Show all 6 versions
  • 0 downloads today

  • 3 downloads this week

  • 6 downloads this month

  • 38 downloads total