The onDraw(GL10 gl): gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT) short is 2 bytes, therefore we multiply the number ifīyteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2) a float is 4 bytes, therefore we multiply the number ifīyteBuffer vbb = ByteBuffer.allocateDirect(verticesFlat.length * 4) Here is some code, for you guys to figure out the problem ( probably a easy fix. I have successfully made a pointy Hexagon, but when i convert it into a flat Hexygon it doesnt render correctly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |