Login  Register

Re: glVertexAttribIPointer(int, int, int, int, long)?

Posted by darren on Jun 08, 2011; 1:52pm
URL: https://forum.jogamp.org/glVertexAttribIPointer-int-int-int-int-long-tp3034571p3039160.html

Hi Wade,

Thanks for the reply. I think I might be missing something in how the buffer objects are being used. My understanding was that the pointer in the c spec was basically just an integer offset into the bound VBO.  That is why I was looking for a pointer parameter of type long. Have I got this wrong? I am a bit confused as to how to get the same result by providing a buffer object. The examples I can find seem to be using the buffer pointer parameter to actually specify the content of the VBO but in my case the buffer is already defined and filled.

Could you provide a short example showing how the buffer should be used in this case?

Thanks again,

Darren.