How to convert glVertexPointer(3, GL_FLOAT, 0, vertices) to JOGL syntax
Posted by ElvJOGL on Feb 15, 2016; 5:19pm
URL: https://forum.jogamp.org/How-to-convert-glVertexPointer-3-GL-FLOAT-0-vertices-to-JOGL-syntax-tp4036248.html
Hi,
I want to know how to convert this pieces of code to JOGL syntax.
I am trying to put together a 3D cube example, and in the instruction from book: OpenGL (3rd Edition): A Primer (by Edward Angel), page 95.
how can I convert this:
glVertexPointer(3, GL_FLOAT, 0, vertices);
glColorPointer(3, G_FLOAT, 0, colors);
bear in mind that both [vertices] and [colors] variables are double float arrays vertices[][] and colors[][].
Could anyone give me the JOGL syntax version.
Once I think I have placed the cude code completely together I will post it in the forum for opinions.
Thanks.