Skip to content

Latest commit

 

History

66 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL ES Demo

About

This is a basic OpenGL ES 3.2 demo using C++ and SDL3 for Android.

Building

Prerequisites

  • Unix-like system
  • Bash
  • Meson
  • Ninja
  • OpenJDK
  • Android SDK
  • Android NDK

Cross file setup

Create 2 Meson cross file for 32 bit and 64 bit ARM Android device:

[host_machine]
system = 'android'
cpu_family = '<aarch64|arm>'
cpu = '<armv8-a|armv7-a>'
endian = 'little'

[constants]
api_level = '35'
ndk = '<ndk root path>/'
ndk_bin = ndk + 'toolchains/llvm/prebuilt/linux-x86_64/bin/'

[binaries]
ar = ndk_bin + 'llvm-ar'
as = ndk_bin + 'llvm-as'
c = ndk_bin + ' <aarch64|arm>-linux-<android|androideabi>' + api_level + '-clang'
cpp = ndk_bin + '<aarch64|arm>-linux-<android|androideabi>' + api_level + '-clang++'
ld = ndk_bin + 'ld'
ranlib = ndk_bin + 'llvm-ranlib'
strip = ndk_bin + 'llvm-strip'
pkg-config = 'false'

Building the APK

meson setup --cross-file <path to cross file> -Dbuildtype=debug .build/obj
meson compile -C .build/obj

Signing the APK

See the apksigner documentation for more information.

License

This project is licensed under the MIT License, this project also include some third party libraries, more information can be found inside THIRD_PARTY_LICENSE.

About

Simple demo of OpenGL ES with SDL3.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages