LWJGL Display class not found

I installed LWJGL in a Java project and I cannot import the Display class.

import org.lwjgl.opengl.display;

Gives an error that cannot be resolved.

DisplayMode and other classes are also missing. I can not find them in browsers.

+4
source share
2 answers

In LWJGL3, the old utility classes, such as Display, Keyboard, Mouse, etc., have been removed. Libary now uses GLFW to manage windows, which is more complex, but is said to have better performance and additional features. As with OpenGL methods, all glfw methods are static and reside in the class org.lwjgl.glfw.GLFW.

, LWJGL3 , . (): https://github.com/SilverTiger/lwjgl3-tutorial/wiki. , , .

EDIT: 2015 LWJGL3.

EDIT: 2015 LWJGL2 LWJGL3.

+10
  • lwjgl
  • lwjgl.jar, lwjgl_util.jar slick-util.jar
  • " " → " "
  • , ...

, ... fooobar.com/questions/1570386/...

import org.lwjgl.opengl.Display;

EDIT: LWJGL 3 http://www.lwjgl.org/guide

0

Source: https://habr.com/ru/post/1570384/


All Articles