Monado OpenXR Runtime
Loading...
Searching...
No Matches
android_globals.cpp File Reference

Functions for Android-specific global state. More...

#include "android_globals.h"
#include <stddef.h>
#include <wrap/android.app.h>
Include dependency graph for android_globals.cpp:

Functions

void android_globals_store_vm_and_activity (struct _JavaVM *vm, void *activity)
 
void android_globals_store_vm_and_context (struct _JavaVM *vm, void *context)
 
bool android_globals_is_instance_of_activity (struct _JavaVM *vm, void *obj)
 
void android_globals_store_window (struct _ANativeWindow *window)
 
struct _ANativeWindow * android_globals_get_window ()
 
struct _JavaVM * android_globals_get_vm ()
 
void * android_globals_get_activity ()
 
void * android_globals_get_context ()
 

Variables

struct { 
 
   struct _JavaVM *   vm = nullptr 
 
   jni::Object   activity = {} 
 
   jni::Object   context = {} 
 
   struct _ANativeWindow *   window = nullptr 
 
android_globals 
 

Detailed Description

Functions for Android-specific global state.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Variable Documentation

◆ [struct]

struct { ... } android_globals
Todo:
Do we need locking here?