Demos/Graphics/LowLevelGL needs glVertexAttribPointer (should be available on GLES2) #3621

Closed
gohai opened this Issue Aug 15, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@gohai
Contributor

gohai commented Aug 15, 2015

Please close if this is expected behavior - I am currently testing all P2D/P3D examples with GLES2 hardware, and came across a few examples that try to use functions unavailable to GLES2.

I am receiving an error that "GL function glVertexAttribPointer() is not available", but the function should be available in GLES2 according to this documentation. The current code in PJOGL.java:1961 checks if gl2x if gl2x is not null and continues to call the method on this object, if it is not. Any chance that this would be also available for gl2?

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Aug 15, 2015

Contributor

It seems the function is being called with a buffer rather than an offset. And JOGL only supports the latter for GLES2. Could either the example be changed, or the function be made to transparently handle this case? (I found this GL2ES2 demo from the JOGL team, that shows how they suggest to do it, I think)

Contributor

gohai commented Aug 15, 2015

It seems the function is being called with a buffer rather than an offset. And JOGL only supports the latter for GLES2. Could either the example be changed, or the function be made to transparently handle this case? (I found this GL2ES2 demo from the JOGL team, that shows how they suggest to do it, I think)

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Aug 21, 2015

Contributor

This function is not going to work anymore because we moved to GL2ES2 and we are not getting legacy GL2 functionality on desktop.

Removed the example and added two new ones to show how it should be done: processing/processing-docs#289
See examples: Demos/Graphics/LowLevelGLVboInterleaved and Demos/Graphics/LowLevelGLVboSeparate

Contributor

JakubValtar commented Aug 21, 2015

This function is not going to work anymore because we moved to GL2ES2 and we are not getting legacy GL2 functionality on desktop.

Removed the example and added two new ones to show how it should be done: processing/processing-docs#289
See examples: Demos/Graphics/LowLevelGLVboInterleaved and Demos/Graphics/LowLevelGLVboSeparate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment