Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-25 Thread MrSmith via Digitalmars-d-learn
On Wednesday, 24 September 2014 at 13:59:41 UTC, csmith wrote: On Wednesday, 24 September 2014 at 11:07:56 UTC, Mike Parker wrote: You're using deprecated OpenGL calls. The gl3 module only declares and loads modern OpenGL. If you really want to use the deprecated stuff, change the gl3 import

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread kiran kumari via Digitalmars-d-learn
On Wednesday, 24 September 2014 at 03:08:55 UTC, csmith wrote: Hi everyone, I've got derelict.opengl3.gl3 and derelict.glfw3.glfw3 setup with dub and can get a window to open up and close with glfw3. I can also use glClear(GL_COLOR_BUFFER_BIT); however, beyond this most OpenGL commands fail

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread Nicolas F. via Digitalmars-d-learn
Make sure to call DerelictGL3.reload() to get all the OpenGL calls, if you don't, you only get OpenGL 1.1

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread Mike Parker via Digitalmars-d-learn
On 9/24/2014 12:08 PM, csmith wrote: Hi everyone, Compiling... source/app.d(25): Error: undefined identifier glBegin source/app.d(26): Error: undefined identifier glEnd FAIL .dub/build/application-debug-linux.posix-x86_64-dmd-357CCD4CB91CACEC384AF7BAA514E3A7 myproj

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread csmith via Digitalmars-d-learn
On Wednesday, 24 September 2014 at 11:07:56 UTC, Mike Parker wrote: You're using deprecated OpenGL calls. The gl3 module only declares and loads modern OpenGL. If you really want to use the deprecated stuff, change the gl3 import to this: import derelict.opengl3.gl; And call load/reload on

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread Nicolas F. via Digitalmars-d-learn
Whoops, I just saw that my earlier answer was totally inaccurate. I was on my phone at the time, so didn't look at the code in detail. On Wednesday, 24 September 2014 at 13:59:41 UTC, csmith wrote: On Wednesday, 24 September 2014 at 11:07:56 UTC, Mike Parker wrote: You're using deprecated

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread csmith via Digitalmars-d-learn
Whoops, I just saw that my earlier answer was totally inaccurate. I was on my phone at the time, so didn't look at the code in detail. No big deal, figured you just missed it / auto response to this kinda question. I did my best to google this question, but wasn't really sure where to

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-24 Thread Nicolas F. via Digitalmars-d-learn
On Wednesday, 24 September 2014 at 16:36:29 UTC, csmith wrote: I came from web development, you're meaning to tell me there's coding outside of writing boilerplate? Jokes aside, figured if I took the time to learn a modern language, I'd be consistent with adding in newer technologies :) In

Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-23 Thread csmith via Digitalmars-d-learn
Hi everyone, I've got derelict.opengl3.gl3 and derelict.glfw3.glfw3 setup with dub and can get a window to open up and close with glfw3. I can also use glClear(GL_COLOR_BUFFER_BIT); however, beyond this most OpenGL commands fail and I can't seem to figure out how to fix it. Code: