Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Android example project and tests with LWJGL

License

NotificationsYou must be signed in to change notification settings

LWJGL/android-test

Repository files navigation

lwjgl-android

LicenseSizeSlack Status

LWJGL 3 - Android example project and tests

Build instructions for the Android version of lwjgl3:

  • clonelwjgl3 andcheckout theandroid branch.
  • SET/export theANDROID_SDK_HOME environment variable. Its value should be the root of the Android SDK. The Android NDK must also be installed under the root, in the defaultndk-bundle subdirectory.
  • Runant compile-templates. This will take 1-2 minutes.
  • Runant aar. This will produce anlwjgl.aar file in thebin/android/ folder.
  • Copylwjgl.aar to theandroid-test repository, in thelwjgl folder.

Build instructions for the Android demos:

  • Open the root in Android Studio.
  • Wait for gradle synchronization and indexing to complete.
  • Build the project.
  • Connect a platform 24 compatible device, either via USB or Wi-Fi.
  • Launch either thegears orhellovulkan run configurations. (shortcut:Alt+Shift+F10)

Installation of Vulkan validation layers:

  • Create a JNI library folder for the target architecture. For example:
    • hellovulkan/src/main/jniLibs/arm64-v8a/ or
    • hellovulkan/src/main/jniLibs/armeabi-v7a/
  • Copy the shared libraries from the corresponding folder in the Android NDK. For example:
    • <sdkroot>/ndk-bundle/sources/third_party/vulkan/src/build-android/jniLibs/arm64-v8a/ or
    • <sdkroot>/ndk-bundle/sources/third_party/vulkan/src/build-android/jniLibs/armeabi-v7a/
  • Set theVALIDATE variable totrue inHelloVulkan.java:53

[8]ページ先頭

©2009-2025 Movatter.jp