On Tuesday, 14 January 2014 at 09:35:11 UTC, evilrat wrote:
On Tuesday, 14 January 2014 at 07:44:21 UTC, Mineko wrote:
this.get = glfwCreateWindow(settings.width, settings.height,
toStringz(settings.title), this.monitor, this.share);
writeln(this.get);
That writeln will give me null, is it related to all this
stuff?
i've looked up in your sources on github and not found derelict
initiliazation. i recommend loading glfw in relevant module
with module ctor. most if non all derelict bindings has dynamic
loading, don't forget to load and init derelict 'plugins' if
necessary.
----------------
module window;
static this()
{
DerelictGLFW.load();
}
class Window
{
... using GLFW here ...
}
--------------
I'm pretty sure it's initialized here:
https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/belt.d
/** Initialize GLFW */
auto initGLFW()
{
import breaker.main : timer;
DerelictGLFW3.load;
if (!glfwInit)
return false;
timer.time = 0.0001;
return true;
}
Perhaps I should be using () with GLFW3.load and glfwInit?
I'll try a static loading though, sure.