G GDO Member Licensed User Longtime User Feb 28, 2013 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2013 #2 You will not be able to create a buffer without the help of a library. I'm not deeply familiar with this library. Are you sure that it doesn't provide a way to get such buffer? Upvote 0
You will not be able to create a buffer without the help of a library. I'm not deeply familiar with this library. Are you sure that it doesn't provide a way to get such buffer?
G GDO Member Licensed User Longtime User Feb 28, 2013 #3 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
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 ?
agraham Expert Licensed User Longtime User Mar 3, 2013 #4 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
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
G GDO Member Licensed User Longtime User Mar 4, 2013 #5 I hope you 'll find a solution. Thank you for your help. Upvote 0
agraham Expert Licensed User Longtime User Mar 4, 2013 #6 See my reply to your question in the OpenGL2 library thread http://www.b4x.com/forum/additional...dates/9262-opengl-2-0-library.html#post155992 Upvote 0
See my reply to your question in the OpenGL2 library thread http://www.b4x.com/forum/additional...dates/9262-opengl-2-0-library.html#post155992