Game Development Reference
In-Depth Information
not support the OpenGL ES 3.0 API so I suggest checking what version of OpenGL ES is
supported at runtime; see “Checking OpenGL ES Version” at http://developer.android.
com/guide/topics/graphics/opengl.html#version-check .
Note All the code included in this chapter was developed, compiled and tested using Eclipse IDE
for Java Developers instead of Android Studio 1.0.1 since, when this manuscript was written, NDK
and JNI were not supported by Android Studio.
Let's get started.
NEED AN OPENGL REFRESHER?
For this chapter, you'll need a basic understanding of OpenGL. If your OpenGL is a bit rusty, I suggest referring
to the best tutorials I have found on the Web:
The Android Developer web site provides a good starting point about OpenGL and Android.
http://developer.android.com/guide/topics/graphics/opengl.html
The OpenGL Coding Resources:
https://www.opengl.org/resources/
I do recommend you have a good look at the OpenGL 4.5 specification released publicly
by Khronos. It brings the very latest functionality to the industry's most advanced 3D
graphics API while maintaining full backward compatibility, enabling applications to
incrementally use new features.
https://www.khronos.org/opengl/
Greg Sidelnikov's tutorial about the OpenGL coordinate system covers the basics, such
as perspectives, orthographic projections, 3D camera, graphics pipeline, variable and
function naming conventions, and more. It is a good place to start.
www.falloutsoftware.com/tutorials/gl/gl0.htm
If you are confused about OpenGL projections, MathWorld has some good information
about all kinds of 3D projections used in OpenGL.
http://mathworld.wolfram.com/OrthographicProjection.html
NeHe Productions has compiled a comprehensive set of tutorials that cover pretty much
everything you need to write an OpenGL application. They are very popular.
http://nehe.gamedev.net/
 
Search WWH ::




Custom Search