Suggestions (to LWJGL team)

By requiring the client to provide a buffer of a known type. It is generally not advisable to provide methods that take a Buffer as a parameter because it could some crazy subclass of Buffer which you haven’t anticipated such as CharBuffer or LongBuffer.

At the very least, require a ByteBuffer as your parameters, and then you can turn it directly into a FloatBuffer or IntBuffer or whatever as required. But Buffer as an argument is a very poor choice.

Cas :slight_smile:

Thanks for the advice! I really appreciate it.

No worries. Sometimes OOP makes us gnash our teeth for hours or days trying to do something “just because” when the answer is staring us in the face.

Cas :slight_smile: