LWJGL Forum

Programming => OpenGL => Topic started by: Elo on May 29, 2009, 12:57:33

Title: [solved] Newbi Problem
Post by: Elo on May 29, 2009, 12:57:33
Hello, i am very new in OpenGL and try to do my first steps in LWJGL.

My first Problem is that i try to run the very basic tutorial code
from http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/basicopengl
and i can see nothing :-(

The window opens but i cant see the rectangle.
I use eclipse and added all the jars and dlls into my project and i am using
lwjgl-2.1.0.

Does anybody knows what the problem could be?

Greetings Marc


Title: Re: Newbi Problem
Post by: Elo on May 29, 2009, 13:28:23
Oh, i found the answer in http://lwjgl.org/forum/index.php/topic,2736.0.html
Its becaus some default OpenGL values are not set since lwjgl since version 2.0

With GL11.glOrtho(0.0, Display.getDisplayMode().getWidth(), 0.0, Display.getDisplayMode().getHeight(), -1.0, 1.0);
does it work now.