DerelictGL program draw nothing
cal
callumenator at gmail.com
Mon Sep 3 10:12:28 PDT 2012
On Monday, 3 September 2012 at 17:08:55 UTC, cal wrote:
> On Monday, 3 September 2012 at 17:02:46 UTC, Zhenya wrote:
>> that dosn't work
>
> How large is your window?
>
> glViewport(0,0,width,height);
>
> should really be setting to the window size - so if you make
> your window 800,800, this should be
>
> glViewport(0,0,800,800);
Just saw it, never mind. Also, I think before you draw, you need
to set the matrix mode to modelview, and load identity...
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
display();
More information about the Digitalmars-d-learn
mailing list