Reputation: 11
How to port android open GL code to iPhone ? There are lot of bytebuffer, floatbuffer used in the code which i am not able to convert.
Upvotes: 1
Views: 223
Reputation: 4182
bytebuffers/floatbuffers are simply byte arrays and float arrays but uses native allocation other than allocation in the JVM, which is more efficient. You can write your own class to wrap the functionalities of ByteBuffer/FloatBuffer in Objective-C.
Upvotes: 2