-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event loop implementation for Android. #132
Conversation
b537af7
to
f2eeba8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments.
cdf668b
to
4976d67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nits. Will wait on @Keenuts feedback as well.
e6f2691
to
f339316
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the review delay!
Just some nits.
One thing I don't know yet is how Android handles application lifecycles with native activities (regarding the global/local app variable). But I'd guess we'll find out sooner or later.
mAndroidApp->userData = this; | ||
} | ||
|
||
Result WindowImplAndroid::Create(const char* title) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit pTitle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a C style string, pTitle sounds like const char**
- Add event process to the application main loop. - Read screen resolution from Android window. - Pass touch input to ImGui.
f339316
to
1be5ddb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR seems to have messed with the rendered image on the two XR projects. |
closes #126 |
I got a bit annoyed at
#if defined
statements, and trying to figure out what is the exact control flow, so I pulled out the part that are glfw or android specificThe new stuff