Hello Guest

[solved] Newbi Problem

  • 1 Replies
  • 2826 Views
*

Offline Elo

  • *
  • 2
[solved] Newbi Problem
« 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


« Last Edit: May 29, 2009, 21:00:37 by Elo »

*

Offline Elo

  • *
  • 2
Re: Newbi Problem
« Reply #1 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.