DerelictGL3 glGenBuffers segmentation fault.
Mike Parker
aldacron at gmail.com
Sun Dec 24 16:27:11 UTC 2017
On Sunday, 24 December 2017 at 14:48:20 UTC, Kevin wrote:
> Thanks. That help but know my buffers doesn't recognize opengl
> types.
>
> I created mygl and import it to all files. Updated code on
> github.
> source/buffers.d(6,12): Error: undefined identifier GLuint, did
> you mean alias GLuint64?
> source/buffers.d(7,13): Error: undefined identifier GLsizei
> and more.
In mygl.d, your import of derelict.opengl needs to be public:
module mygl;
public import derelict.opengl;
mixin glFreeFuncs!(GLVersion.gl33);
>
> Did I put "DerelictGL3_CustomFreeFuncs" in the right place ?
> json file
> "name": "cube",
> "targetType": "executable",
> "mainSourceFile": "source/cube.d",
> "dependencies": {
> "derelict-sdl2": "~>3.0.0-beta",
> "derelict-gl3": "~>2.0.0-beta",
> "gl3n": "~>1.3.1",
> },
> "versions": [ "DerelictGL3_CustomFreeFuncs" ],
It doesn't matter where it goes, as long as it's on its own line.
More information about the Digitalmars-d-learn
mailing list