LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: devil0150 on March 14, 2017, 14:45:00

Title: Web games with LWJGL?
Post by: devil0150 on March 14, 2017, 14:45:00
Hello,

I'm looking for a library to develop web games, and I'm considering LWJGL. Can games built with LWJGL run on the web? All information I could find is pretty old, 2013 or earlier.

Thanks.
Title: Re: Web games with LWJGL?
Post by: Kai on March 14, 2017, 15:40:26
If by Web you mean in a web browser with HTML/WebGL (and not something like an Applet), then no it cannot. LWJGL is explicitly for Desktop (and as of very recently, Android) development.
But you might be interested in WebGL4J (https://github.com/sriharshachilakapati/WebGL4J) and GWT-AL (https://github.com/sriharshachilakapati/GWT-AL) which adapt part of LWJGL's bindings (OpenGL and OpenAL, specifically) to WebGL and Web Audio, respectively, using the Google Web Toolkit.
Title: Re: Web games with LWJGL?
Post by: kappa on March 14, 2017, 17:22:24
There is also the LibGDX (https://libgdx.badlogicgames.com/) library which has a LWJGL backend for the desktop and GWT one for web games.