LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.77k stars 635 forks source link

Add binding to OpenGL Mathematics (GLM) #31

Closed renannprado closed 9 years ago

renannprado commented 9 years ago

I've seen that a lot of guides using this extension math lib, it seems to me that it would be pretty useful to have binding of that. The website: https://www.opengl.org/sdk/libs/GLM/

httpdigest commented 9 years ago

You might want to have a look at JOML: https://github.com/JOML-CI/JOML It does however not (yet) reflect the design of GLM, but rather that of Sun's javax.vecmath, due to being allocation-free.

Spasi commented 9 years ago

LWJGL is not yet able to create C++ bindings. Especially to libraries that are template heavy like GLM.

Native math libraries in general will suffer from JNI overhead (too many calls, doing too little work) and don't offer much over what you can do in Java. A solution like JOML is a better option.