How to define data AS java.nio.Buffer ?

GDO

Member
Licensed User
Longtime User
Hello,

Could you please tell me how to define data as java.nio.Buffer ?

I need it to use glBufferData (OpenGL 2) :
glBufferData (target As Int, size As Int, data As java.nio.Buffer, usage As Int)

Thank you
 

GDO

Member
Licensed User
Longtime User
Yes, there is nothing in the library to create a java.nio.buffer and without buffer it is impossible to draw something with opengl 2.0 !?

Do I miss something ?
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Sorry, it looks like I skipped glBufferData and glBufferSubData when transforming Buffers to Short arrays which Basic4android knows about. I'll look at it tomorrow once I've refreshed my memory as I haven't touched this library for 20 months and it's all gone a bit dim :(
 
Upvote 0
Top