Learn OpenGL ES

Learn how to develop mobile graphics using OpenGL ES 2

Developing a Simple Game of Air Hockey Using C and OpenGL ES 2 for Android, iOS, and the Web

Some of you have been curious about what the air hockey game from the book would be like if we brought it over to other platforms. I would like to find out, myself. 🙂 In the spirit of my last post about cross-platform development, I want to port the air hockey project over to a native cross-platform code base that can be built for Android and iOS, and even the web by using emscripten and WebGL. Everything will be open-source and available on GitHub.

Here are some of the things that we’ll have to figure out and learn along the way:

  • Setting up a simple build system for each platform.
  • Initializing OpenGL.
  • Adding support for basic touch and collision detection.

In the next post, we’ll take a look at setting up a simple build system to initialize OpenGL across these different platforms. Here are all of the posts for the series so far:

Setting up a simple build system

Adding support for PNG loading into a texture

Adding a 3d perspective, mallets, and a puck

Adding touch events and basic collision detection

The code is available on Github, with each section organized by tags.

2 comments and 6 pingbacks to “Developing a Simple Game of Air Hockey Using C and OpenGL ES 2 for Android, iOS, and the Web”

  1. Sindisil

    I’m very much looking forward to this series!

    If an eBook (preferably non-DRM ePub) came of it, I’d almost certainly be interested in that, as well, if for no other reason than as a way to provide some financial support for the information you’re sharing.

  2. Pingback: Calling OpenGL from Android Using the NDK | Learn OpenGL ES

  3. Pingback: Loading a PNG into Memory and Displaying It as a Texture with OpenGL ES 2, Using (Almost) the Same Code on iOS, Android, and Emscripten | Learn OpenGL ES

  4. Pingback: Site Updates, and Thoughts on Native Development for the Web | Learn OpenGL ES

  5. Pingback: Finishing Up Our Native Air Hockey Project With Touch Events and Basic Collision Detection | Learn OpenGL ES

  6. Pingback: Adding a 3d Perspective and Object Rendering to Our Air Hockey Project in Native C Code | Learn OpenGL ES

  7. Pingback: Cross-platform C++/OpenGL ES development (iOS/Android) [closed] | Question and Answer

Comments are closed. This site is kept as a historical archive.