digitalmars.D.learn - How do you create an opengl window with DerelictOrg?
- Enjoys Math (3/3) Dec 07 2015 I've seen these:
- Alex Parrill (4/7) Dec 07 2015 Derelict is just bindings for other libraries, for using C
- BLM768 (12/15) Dec 07 2015 OpenGL itself can't create a window/context, so you'll need to
- Enjoys Math (2/18) Dec 07 2015 Any one have a sample dub / glfw project to get me going?
- Guillaume Piolat (3/25) Dec 07 2015 I have one that uses SDL and display things using "modern" OpenGL.
I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples?
Dec 07 2015
On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote:I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples?Derelict is just bindings for other libraries, for using C libraries with D. Pick a library that does windows management (I use GLFW, but I also see SFML and SDL), find the docs for them.
Dec 07 2015
On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote:I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples?OpenGL itself can't create a window/context, so you'll need to use DerelictGLFW or DerelictSDL. GLFW is lighter-weight. Combine the setup code from here: https://github.com/DerelictOrg/DerelictGLFW3 ...with the example code from here: http://www.glfw.org/documentation.html Don't forget to load DerelictGL when you load DerelictGLFW. In addition, after you have the OpenGL context, you'll need to call DerelictGL3.reload() if you want anything more advanced than OpenGL 1.1. https://github.com/DerelictOrg/DerelictGL3
Dec 07 2015
On Monday, 7 December 2015 at 22:01:15 UTC, BLM768 wrote:On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote:Any one have a sample dub / glfw project to get me going?I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples?OpenGL itself can't create a window/context, so you'll need to use DerelictGLFW or DerelictSDL. GLFW is lighter-weight. Combine the setup code from here: https://github.com/DerelictOrg/DerelictGLFW3 ...with the example code from here: http://www.glfw.org/documentation.html Don't forget to load DerelictGL when you load DerelictGLFW. In addition, after you have the OpenGL context, you'll need to call DerelictGL3.reload() if you want anything more advanced than OpenGL 1.1. https://github.com/DerelictOrg/DerelictGL3
Dec 07 2015
On Monday, 7 December 2015 at 22:19:17 UTC, Enjoys Math wrote:On Monday, 7 December 2015 at 22:01:15 UTC, BLM768 wrote:I have one that uses SDL and display things using "modern" OpenGL. https://github.com/d-gamedev-team/gfm/blob/master/examples/simpleshader/simpleshader.dOn Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote:Any one have a sample dub / glfw project to get me going?I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples?OpenGL itself can't create a window/context, so you'll need to use DerelictGLFW or DerelictSDL. GLFW is lighter-weight. Combine the setup code from here: https://github.com/DerelictOrg/DerelictGLFW3 ...with the example code from here: http://www.glfw.org/documentation.html Don't forget to load DerelictGL when you load DerelictGLFW. In addition, after you have the OpenGL context, you'll need to call DerelictGL3.reload() if you want anything more advanced than OpenGL 1.1. https://github.com/DerelictOrg/DerelictGL3
Dec 07 2015