Game Development Reference
In-Depth Information
private ByteBuffer mIndexBuffer;
}
Figure 5-4 shows the sample in action. In the next section, you'll see how portions of this code can
be implemented natively.
Figure 5-4. Tumbling cubes from the Java sample
OpenGL the Native Way
In the previous section, you saw how a pure Java OpenGL application works from the ground up. This
applies if you write an application from scratch in Java. However, if you already have a C OpenGL
renderer and wish to interface with Android, you probably don't want to rewrite your application
(especially if it has thousands of lines of code). This would consume significant time and resources, and
Search WWH ::




Custom Search