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

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 24 04:08:09 PDT 2014


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 executable
>      Error executing command run: DMD compile run failed with exit code 1
>
> Any ideas?
>

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 the DerelictGL instance rather than DerelictGL3. 
All of the modern stuff will still be available.





---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



More information about the Digitalmars-d-learn mailing list