procedural-3d-engine/android
2016-03-24 23:07:14 +01:00
..
bloom Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
computeparticles Android support for Compute particles example, replacing separate Android version (#97) 2016-03-23 22:17:14 +01:00
computeshader Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
images Android makefiles, manifest and icon (#97) 2016-03-20 16:27:32 +01:00
mesh Updated readmes on Android support and building (#97) 2016-03-22 22:51:36 +01:00
offscreen Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
particlefire Android support for particle fire example (#97) 2016-03-23 23:02:10 +01:00
texture Added assimp (static library) to android makefiles (#97) 2016-03-22 13:41:30 +01:00
triangle Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
vulkanscene Android support for Vulkan demo scene (#97) 2016-03-23 21:45:43 +01:00
_build.bat Android support for Vulkan demo scene (#97) 2016-03-23 21:45:43 +01:00
_setup.bat Removed deprecated separate triangle and texture demos, replaced with android build files (wip) (#97) 2016-03-21 23:33:33 +01:00
build-bloom.bat Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
build-computeparticles.bat Android support for Compute particles example, replacing separate Android version (#97) 2016-03-23 22:17:14 +01:00
build-computeshader.bat Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
build-mesh.bat Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
build-offscreen.bat Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
build-particlefire.bat Android support for particle fire example (#97) 2016-03-23 23:02:10 +01:00
build-texture.bat Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
build-triangle.bat Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
build-vulkanscene.bat Android support for Vulkan demo scene (#97) 2016-03-23 21:45:43 +01:00
README.md Updated readmes on Android support and building (#97) 2016-03-22 22:51:36 +01:00

Vulkan examples on Android

Vulkan on Android

Since Vulkan is not yet part of the Android OS (like OpenGL ES) the library and function pointers need to be dynamically loaded before using any of the Vulkan functions. See the vulkanandroid.h and vulkanandroid.cpp files in the base folder of the repositoy root for how this is done.

Device support

  • To run these examples you need a device with an Android image that suports Vulkan
  • Builds currently only support arm-v7, x86 may follow at a later point
  • Android TV leanback launcher is supported, examples will show up on the launcher
  • Basic gamepad support is available too (zoom and rotate)

Imporant note

I'm currently in the process of replacing the old (separate) Android examples, integrating Android support into the main line of examples. This is a work-in-progress, so the examples that are already converted may contain errors. Most notably they won't free the Vulkan resources for now.

Building

Requirements

  • Android NDK r11b - Somewhere in your sarch path
  • Batch files for building are provided for windows only, with linux to be added at some point

Building the Examples

Builds are started using the provided batch file for each example.

Build only

Call the corresponding .bat, call e.g. :

build-triangle.bat

This will build the apk and move it to the "bin" folder

Deploy

If you want to deploy to an attached Android device right after the build is done :

build-triangle.bat -deploy