Skip to content

Commit 4e99af5

Browse files
committed
android stuff
1 parent 5eb8899 commit 4e99af5

9 files changed

Lines changed: 917 additions & 855 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "android_globals.hxx"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#pragma once
2+
3+
#include <android/native_activity.h>
4+
5+
#include "../../application.hpp"
6+
7+
namespace {
8+
struct android_globals_wrapper final {
9+
static ANativeActivity* native_activity = nullptr;
10+
11+
// static void android_globals_wrapper::
12+
13+
static android_globals_wrapper& get(){
14+
utki::assert(native_activity, SL);
15+
utki::assert(native_activity->instance, SL);
16+
}
17+
18+
std::unique_ptr<ruisapp::application> app;
19+
};
20+
} // namespace
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "application.hxx"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#pragma once
2+
3+
#include <utki/destructable.hpp>
4+
5+
namespace {
6+
class application_glue : public utki::destructable
7+
{
8+
public:
9+
};
10+
} // namespace
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "display.hxx"
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#pragma once
2+

0 commit comments

Comments
 (0)