Game Development Reference
In-Depth Information
Vector3 LightPosition = new Vector3(0,-125,0);
Run the program. You should see something similar to Figure 2-7 .
Feel free to experiment more with light properties in the SetupLights() function. For example, try to
change the values of the diffuse, ambient, and specular values to see what effect they will have on
the object.
Summary
In this chapter, I covered the Java programming language as it relates to Android programming. First
I covered the basics of Java, such as data types, functions, classes, and operators. Then we looked
at the basic Java program framework that applies to all Android applications. Next, I covered the
specific Java program framework that applies specifically to OpenGL ES applications. Finally,
I presented a “Hello Droid” project that gave you a preview of how the rest of the code in this topic
will be structured.
 
Search WWH ::




Custom Search