Search code examples
dglfwderelict3

Derelict and GFW3


I'm trying to get Derelict3 to work with GLFW3 on Ubuntu 12.10.

I've successfully built Derelict3 and glfw3 using DMD 2.061. Imports and links work.

But it seems the API has changed since this article was written since I (case insensitively) can't find any reference to glfwOpenWindowHint in neither

  • Derelict3 (git://github.com/aldacron/Derelict3.git) nor
  • GLFW3 (git://github.com/elmindreda/glfw.git)

And I can't find any other tutorials on using GLFW3.

Does anyone have an uptodate tutorial on how to use GLFW3 either in C or D?

Update: I guess the examples directory in glfw3 is a good start right?


Solution

  • explore derelict sources - https://github.com/aldacron/Derelict3/blob/master/import/derelict/glfw3/functions.d#L135 - here is ur function.

    btw i'm not think glfw3 is stable enough, i has some unresolved externals even with glfw2 on windows(one example is glfwGetGLVersion) so i think it's more likely a glfw issue. glfw2 official site has D bindings(outdated) in their support.

    concerning examples, yes with D it is always a good choice to start with examples provided by authors, D still rapidly grows and so on. also it is a good to start asking on dlang.org forum. and last note, dsource is quite outdated and most of development acivity migrated to github.

    hope all this helps you.