Re: Derelict OpenGL basic program does not work but OpenGL does not say anything is wrong?

2015-02-13 Thread Mike Parker via Digitalmars-d-learn
On 2/13/2015 6:14 PM, Mike Parker wrote: On 2/13/2015 12:46 PM, Bennet wrote: I've begun writing some basic OpenGL code using DerelictGL3 but I've hit a wall. I've managed to open a window (with DerelictSDL2) and call basic OpenGL functions such as glClear(). Still I can not get a basic

Re: Derelict OpenGL basic program does not work but OpenGL does not say anything is wrong?

2015-02-13 Thread Mike Parker via Digitalmars-d-learn
On 2/13/2015 12:46 PM, Bennet wrote: I've begun writing some basic OpenGL code using DerelictGL3 but I've hit a wall. I've managed to open a window (with DerelictSDL2) and call basic OpenGL functions such as glClear(). Still I can not get a basic triangle up and running. glError() does not

Re: Derelict OpenGL basic program does not work but OpenGL does not say anything is wrong?

2015-02-13 Thread Nils Forsman via Digitalmars-d-learn
void main(){ DerelictGL3.load(); //create your sdl context, window hints, DerelictGL3.reload(); //Do other stuff... } You got to have a valid context before you call reload. These two functions shall be called only once, I have the impression that you call them multiple times.

Re: Derelict OpenGL basic program does not work but OpenGL does not say anything is wrong?

2015-02-13 Thread Bennet via Digitalmars-d-learn
On Friday, 13 February 2015 at 09:18:29 UTC, Mike Parker wrote: On 2/13/2015 6:14 PM, Mike Parker wrote: On 2/13/2015 12:46 PM, Bennet wrote: I've begun writing some basic OpenGL code using DerelictGL3 but I've hit a wall. I've managed to open a window (with DerelictSDL2) and call basic

Derelict OpenGL basic program does not work but OpenGL does not say anything is wrong?

2015-02-12 Thread Bennet via Digitalmars-d-learn
I've begun writing some basic OpenGL code using DerelictGL3 but I've hit a wall. I've managed to open a window (with DerelictSDL2) and call basic OpenGL functions such as glClear(). Still I can not get a basic triangle up and running. glError() does not return anything and when compiling,