nicolasgramlich/AndEngine — pull request #59 by stevosaurus (2012-03-19 18:10:05+00:00)
Title: Modified VBO so that you are able to set subsets of the buffer as dirty

on hardware using glBufferSubData instead of refreshing the entire buffer any time you change vertex data.

Before the JNI changes this wasn't necessary as updating the entire buffer was fairly quick even with large buffers. Without the JNI buffer methods I was seeing a big performance hit working with HighPerformanceVertexBufferObjects with a large backing buffer.

I wasn't sure if I should create an interface that extended from IVertexBufferObject and then create new objects based on that or just add to the existing objects. I decided to just add to the existing objects since it doesn't modify the behavior of the current method.

I am fairly new to java and AndEngine so if this should be modified or changed to better fit a certain code style please give me some pointers and I will fix it :)