No description
  • C++ 61.8%
  • Shell 12.5%
  • JavaScript 11.2%
  • Java 7%
  • C 7%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-09-04 21:34:26 +02:00
android Build the Android app for SDK 35 2025-09-04 21:34:26 +02:00
assets Add basic text rendering to the example 2022-06-17 11:06:41 +02:00
desktop Fix some deprecated warnings in desktop example 2025-09-04 21:34:16 +02:00
docs Add newer screenshots and updated README file 2022-06-20 10:51:20 +02:00
shared Fix to small code format issues 2022-06-28 09:07:17 +02:00
web All modern browser support wasm simd 2025-09-04 21:33:59 +02:00
.clang-format Cleaned up some code and fixed some small issues 2022-06-18 19:40:31 +02:00
.gitignore Add texture loading both for web and desktop 2022-06-15 11:16:39 +02:00
build.sh Add proper android release building to the build script 2022-06-20 09:45:40 +02:00
LICENSE Initial commit 2022-06-14 18:30:33 +02:00
README.md Fix wrong screenshot path 2022-06-20 10:53:02 +02:00

Portable (Android, Desktop & Web) OpenGL Example

A simple portable OpenGL application that can run in a native Android app with OpenGL ES 3.0, in a native desktop window with OpenGL 3.3 Core and in a browser with WebAssembly and WebGL 2

Android dependencies

You need the Android SDK and the Android NDK, it must be installed some where on your system and the $ANDROID_HOME and $ANDROID_NDK_ROOT variables must be set before you run the build.sh android build script.

Desktop dependencies

You need the LLVM toolchain or a GCC compiler environment to run the build.sh desktop build script, you also need the GLFW3. The rest of the dependencies are included in this repo and automatically build with the application.

Web dependencies

You need the LLVM toolchain to run the build.sh web script. It is very usefull to use the WebAssembly Binary Toolkit tools to disassamble and inspect your wasm bundles.

Screenshots

A screenshot of the program running in Firefox, Chrome, Safari and a native desktop window

A screenshot of the program running in Firefox, Chrome, Safari and a native desktop window

A screenshot of the program running in Firefox, Chrome, Safari and a native desktop window

A screenshot of the program running in a Android emulator as a native app