Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-24 Thread Kevin via Digitalmars-d-learn
On Sunday, 24 December 2017 at 16:27:11 UTC, Mike Parker wrote: On Sunday, 24 December 2017 at 14:48:20 UTC, Kevin wrote: [...] In mygl.d, your import of derelict.opengl needs to be public: module mygl; public import derelict.opengl; mixin glFreeFuncs!(GLVersion.gl33); [...] It doesn'

Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-24 Thread Mike Parker via Digitalmars-d-learn
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/b

Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-24 Thread Kevin via Digitalmars-d-learn
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

Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-23 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 24 December 2017 at 05:23:12 UTC, Mike Parker wrote: If you are going to use glFreeFuncs like this, you can't import opengl that way. As per the DerelictGL3 documentation [1], the simplest way to make this work is to implement a module that publicly imports derelict.opengl and dec

Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-23 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 24 December 2017 at 03:00:16 UTC, Kevin wrote: On Sunday, 24 December 2017 at 01:42:58 UTC, Mike Parker wrote: I've found the problem. But first... I making a simple static library. I don't see a static library anywhere. You weren't "importing a static library", something which

Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-23 Thread Kevin via Digitalmars-d-learn
On Sunday, 24 December 2017 at 01:42:58 UTC, Mike Parker wrote: Need more info than this. Some code that reproduces the issue would be helpful. Also, what do you mean by "import my library"? I making a simple static library. For I can go through Opengl tutorials again. Need to refresh my memor

Re: DerelictGL3 glGenBuffers segmentation fault.

2017-12-23 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 24 December 2017 at 00:58:25 UTC, Kevin wrote: When I import my library into my program. glGenBuffers segmentation fault. When I copy VertexBuffer into main code. It works fine. Why am I getting segmentation fault from library ? Need more info than this. Some code that reproduces