android - convert Vertex buffer to Vertex array -



android - convert Vertex buffer to Vertex array -

i'm working on opengl programme , must calculate bounding box . made code can't vertexes coordinations vertex buffer . can explain me easy way info vertex buffer? i'm using java android , opengl es

if utilize opengl es 3.0 or later, can utilize glmapbufferrange() access buffer info directly. see man page details functionality, , gles30 documentation details java bindings in android.

i don't think there's reasonable way in es 2.0. think of absolutely awful ways, sense bad steer in direction. well, completeness, please do not this: render ends leaving vertex info in render target, , read glreadpixels().

if need frequent access vertex info in own code, work improve if maintain re-create of it. had info when called glbufferdata(). if you're throwing away after glbufferdata() call, maintain around, , utilize whenever need access vertex data.

android opengl-es vbo vao

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -