LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: tripleaaa on July 19, 2015, 10:46:00

Title: Display or glfw
Post by: tripleaaa on July 19, 2015, 10:46:00
Hi guys.
I am new to lwjgl 3.

Should i use opengl.Display or glfw in order to create a window?

The lwjgl wiki uses Display but on the official lwjgl site they use glfw in the HelloWorld example.

Thanks
tripleaaa
Title: Re: Display or glfw
Post by: kappa on July 19, 2015, 10:59:48
LWJGL3 has not Display class (that was only in LWJGL2), you should therefore use GLFW to create a window in LWJGL3.
Title: Re: Display or glfw
Post by: SHC on July 19, 2015, 11:06:06
The Display class is from LWJGL2, and is no more in LWJGL3. If you are interested in using LWJGL3, it is recommended that you use GLFW, or try a library such as LWJGLX, which implements a LWJGL2 compatible Display class on top of GLFW.
Title: Re: Display or glfw
Post by: tripleaaa on July 19, 2015, 17:59:33
Thank you  :)