Re: derelict glfw won't set callbacks

2014-05-24 Thread Vlad Levenfeld via Digitalmars-d-learn
Haha, I should have read more carefully. Must have looked at that line in the doc a dozed times and never picked up on that detail. Your example worked for me - I wasn't calling "glfwPollEvents." Thanks!

Re: derelict glfw won't set callbacks

2014-05-24 Thread Rene Zwanenburg via Digitalmars-d-learn
On Saturday, 24 May 2014 at 13:31:46 UTC, Vlad Levenfeld wrote: Any attempt to set callbacks in GLFW returns a null and the callback doesn't work. The first enforcement fails in this example: DerelictGLFW3.load (); enforce (glfwSetErrorCallback (&error_callback)); enforce (glfwInit (), "glfwIn

Re: derelict glfw won't set callbacks

2014-05-24 Thread Andrej Mitrovic via Digitalmars-d-learn
On 5/24/14, Vlad Levenfeld via Digitalmars-d-learn wrote: > Any attempt to set callbacks in GLFW returns a null and the > callback doesn't work. > > The first enforcement fails in this example: > > DerelictGLFW3.load (); > enforce (glfwSetErrorCallback (&error_callback)); It's ok if this fails be

derelict glfw won't set callbacks

2014-05-24 Thread Vlad Levenfeld via Digitalmars-d-learn
Any attempt to set callbacks in GLFW returns a null and the callback doesn't work. The first enforcement fails in this example: DerelictGLFW3.load (); enforce (glfwSetErrorCallback (&error_callback)); enforce (glfwInit (), "glfwInit failed"); window = glfwCreateWindow (screen_dims.x, screen_dim