LWJGL / lwjgl3-demos

Demo suite for LWJGL 3
BSD 3-Clause "New" or "Revised" License
351 stars 89 forks source link

all demo code should be standalone from any other library and not requiring maven #53

Closed goofyseeker311 closed 1 year ago

goofyseeker311 commented 1 year ago

eclipse simple java project without any other setup tasks, including maven project setup should not be required. making the source files compatible with an IDE directly, and not using a script compilation file would be more useful for code exploration. Also any possible dependency to external libraries other than the lwjgl3 library should be removed.

k.i.s.s., just imho. the joml package dependency is not in the repository.

goofyseeker311 commented 1 year ago

link to the joml lib?

sorry cant run the demo lib. not using maven. thanks. is the demo lib outdated? org.lwjgl.opengl.GL.* contains nothing in the opengl package.

goofyseeker311 commented 1 year ago

ok then an actual issue, after adding the hard-to-find/not-linked-to JOML lib to the user library:

org.lwjgl.demo.opengl.swt have a ton of missing identifiers, on both files.

voxelgamegl gives: Exception in thread "main" java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:209) at org.lwjgl.demo.game.VoxelGameGL.createShader(VoxelGameGL.java:1610) at org.lwjgl.demo.game.VoxelGameGL.createSelectionProgram(VoxelGameGL.java:1709) at org.lwjgl.demo.game.VoxelGameGL.initGLResources(VoxelGameGL.java:3519) at org.lwjgl.demo.game.VoxelGameGL.run(VoxelGameGL.java:3478) at org.lwjgl.demo.game.VoxelGameGL.main(VoxelGameGL.java:3543)