AndroidWindow implements the platform window on native_app_glue: it follows the window lifecycle, scales by screen density, delivers touch, pen, mouse, scroll and keyboard input with pressure, tilt and batched history, shows the soft keyboard for text fields, and keeps a local clipboard. runAndroidApplication unpacks bundled assets into the app's data directory and runs an application entry from android_main. The Graphics window library, ImGui and native_app_glue now build for Android.
12 lines
218 B
C++
12 lines
218 B
C++
#pragma once
|
|
|
|
struct android_app;
|
|
|
|
namespace tp {
|
|
|
|
using AndroidMain = int (*)();
|
|
|
|
void runAndroidApplication(
|
|
android_app* app, AndroidMain main, const char* const* assetDirectories, int assetDirectoryCount
|
|
);
|
|
}
|