FAQ

Here you will find Frequently Asked Questions

You should have read the installation tutorial before.

My Sprite is only a white Rectangle

Probably because you expect that the Sprite class stores the Texture which you passed to it. But Sprite stores only a pointer of the Texture. It's your task to make sure that your Texture lives at least as long as you draw your Sprite.

If I minimize my window, it has a very small size, after I open it again.

That is a Windows / D issue. The compiler does not recognize that you are on Windows and so no Windows specific subsystem is activated. You have to activate that by yourself by adding.

-L/SUBSYSTEM:WINDOWS:5.01

on the command line for a 32-bit app (5.02 for 64-bit) or by using a WinMain instead of a main function.
See also this Derelict-SDL issue.

Which D version does I need?

For Dgame 0.6 you need at least 2.067.0.

Which dependencies has Dgame?

Dgame 0.6 has the following dependencies:


Which version of SDL must I have at least?

Dgame 0.6 is based on SDL 2.0.3 but your need at least SDL 2.0.2. See the install tutorial for further informations.

Which version of OpenGL must my PC support at least?

Dgame 0.6 is based on OpenGL 3.0.0 but your need at least OpenGL 2.1.0. See the install tutorial for further informations.