![]() GL.GL_UNSIGNED_INT,(offset + xBlock * IndicesPerBlock) * 4) Gl.glDrawElements(GL.GL_TRIANGLES, xCount * IndicesPerBlock, results in a memory access violation in Gl.glInterleavedArrays(GL2.GL_T2F_N3F_V3F, 0, 0) Gl.glVertexPointer(3, GL.GL_FLOAT, 32, 20) Gl.glTexCoordPointer(2, GL.GL_FLOAT, 32, 0) Gl.glEnableClientState(GL2.GL_VERTEX_ARRAY) Gl.glEnableClientState(GL2.GL_COLOR_ARRAY) Gl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY) Gl.glBindBuffer(GL.GL_ELEMENT_ARRAY_BUFFER, m_IndexBufID) ![]() Gl.glBindBuffer(GL.GL_ARRAY_BUFFER, m_VertexBufID) So how do I replace my glInterleavedArrays call properly in OpenGL ES? And maybe if someone knows, why does the following replacement crash in the latest JoGL implementation (and maybe also everywhere else)? ![]() So I wonder how to use geometry batching through VBOs at all? GlEnableClientState nor gl*Pointer calls seems to be part of any OpenGL ES implementation, let it be OpenTK, JoGL or WebGL. Besides the issue that arises below, I further noticed that neither glInterleavedArrays nor I am having some trouble in porting my OpenGL application to “OpenGL ES 2.0” (namely WebGL).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |