An open API service indexing awesome lists of open source software.

https://github.com/rogerboesch/opengltutorial

Companion code of my OpenGL tutorial
https://github.com/rogerboesch/opengltutorial

android cpp gamedev ios macosx opengl tu

Last synced: 12 months ago
JSON representation

Companion code of my OpenGL tutorial

Awesome Lists containing this project

README

          

# The (Multiplatform-) OpenGL Tutorial

This tutorial is not about creating another game engine but rather about creating simple games on different platforms with almost no changes using OpenGL and C++.
For that reason, the tutorial describes the boilerplate code needed on every platform and how to create a **2D Game** and, in later chapters, a **3D Game** that contains all the game logic.​​

### 2D example game: Pong
I chose Pong as the example 2D game for this tutorial because it just needs rectangles to be created. In the following newsletters, I will extend this by creating more complex and fun games, even in 3D!

### 3D example game: Battle Zone
Battle Zone is one of my all-time favorites. It’s a vector game created by the legendary company Atari. With its use of three-dimensional vector graphics, it only needs wireframe graphics and no textures, lights, etc. A great game to start with in 3D.

I hope you like the tutorial and it brings some light in the different OpenGL versions, how to use them and more importantly how to implement it to become platform independent.

### Source Code
This repository contains the source code for the OpenGL Tutorial which is now on [Medium](https://rogerboesch.medium.com/)

## Articles on Medium

### Coming soon

- Part VIII - Creating Battle Zone 3D (2)
- Part VII - Creating Battle Zone 3D (1)

### Ready to read

- [Part VI - Entering the Third Dimension](https://rogerboesch.medium.com/the-opengl-tutorial-part-vi-25a30291b4ff)
- [Part V - Refactoring: Using GameActivity and OpenGL ES 3 on Android](https://medium.com/@rogerboesch/the-opengl-tutorial-part-v-eae15f5bf5a0)
- [Part IV - Porting to Android](https://rogerboesch.medium.com/the-opengl-tutorial-part-iv-b2e044a21eea)
- [Part III - Creating a version for iOS](https://rogerboesch.medium.com/the-opengl-tutorial-part-iii-47adb24ec32e)
- [Part II - Create a 2D game](https://rogerboesch.medium.com/the-opengl-tutorial-part-ii-28e89600565e)
- [Part I - OpenGL Introduction](https://rogerboesch.medium.com/part-1-opengl-is-apple-killing-it-3508fda24a58)

---

![Pong in Part IV Update](assets/pong.png)

### Videos

[![Video Part IV](https://img.youtube.com/vi/0Mj-r7JjpeE/0.jpg)](https://www.youtube.com/watch?v=0Mj-r7JjpeE)

[![Video Part III](https://img.youtube.com/vi/b7bBmABdUE8/0.jpg)](https://www.youtube.com/watch?v=b7bBmABdUE8)

[![Video Part II](https://img.youtube.com/vi/ijuXTnqpZrA/0.jpg)](https://www.youtube.com/watch?v=ijuXTnqpZrA)