Re: No triangle with OpenGL (DerelictGLFW and DerelictGL3)

2016-06-11 Thread Peter Lewis via Digitalmars-d-learn
On Sunday, 12 June 2016 at 03:46:31 UTC, Mike Parker wrote: On Sunday, 12 June 2016 at 02:16:52 UTC, Peter Lewis wrote: [...] Your problem is this line: glBufferData(GL_ARRAY_BUFFER, verts.sizeof, , GL_STATIC_DRAW); [...] Thank you very much. You are right, that fixed my issue

Re: No triangle with OpenGL (DerelictGLFW and DerelictGL3)

2016-06-11 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 12 June 2016 at 02:16:52 UTC, Peter Lewis wrote: Hi all. I am trying to create a basic OpenGL triangle in a GLFW instance. The window works, I can change the background colour and everything but for the life of me I can't get the triangle to show up. Instead of trying to put

Re: No triangle with OpenGL (DerelictGLFW and DerelictGL3)

2016-06-11 Thread Joerg Joergonson via Digitalmars-d-learn
On Sunday, 12 June 2016 at 02:16:52 UTC, Peter Lewis wrote: Hi all. I am trying to create a basic OpenGL triangle in a GLFW instance. The window works, I can change the background colour and everything but for the life of me I can't get the triangle to show up. Instead of trying to put

No triangle with OpenGL (DerelictGLFW and DerelictGL3)

2016-06-11 Thread Peter Lewis via Digitalmars-d-learn
Hi all. I am trying to create a basic OpenGL triangle in a GLFW instance. The window works, I can change the background colour and everything but for the life of me I can't get the triangle to show up. Instead of trying to put everything in the post, I have put it on github.