-
Notifications
You must be signed in to change notification settings - Fork 640
Android SDL opengles2 implementation #413
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
base: master
Are you sure you want to change the base?
Conversation
I totally want to merge this PR! Thanks for the effort! I'm now contemplating the following:
What do people programming for recent Android think about this? And what do others think? |
I made an script to build the demos, SDL sources are symbolic links into the projects. Anyways you most have a SDL sources copy. I think this project has to much potential, specially for game devs, its hard to write a decent UI from the scratch for mobile devices since you can’t mix platform widgets whit hardware surfaces. All ready there is a lot of people looking at the SDL forums for info and how to implement Nuklear in his projects. |
|
||
SOURCES=() | ||
MKSOURCES="" | ||
CURDIR=`pwd -P` |
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.
`pwd -P`
is dangerous here. I'd prefer "$( pwd -P )"
instead 😉.
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.
done 😉
exit 1 | ||
fi | ||
|
||
if [ ! -d "$ANDROID_HOME/ndk-bundle" -a -z "$ANDROID_NDK_HOME" ]; then |
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.
Should be if [ ! -d "$ANDROID_HOME/ndk-bundle" ] && [ -z "$ANDROID_NDK_HOME" ]; then
as more than one comparison will never be supported according to the latest POSIX (yes, we're in bash here, but while I'm at nitpicking... 😉).
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.
done 😉
|
||
# Start Building | ||
|
||
rm -rf $BUILDPATH |
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.
-> "$BUILDPATH"
# Start Building | ||
|
||
rm -rf $BUILDPATH | ||
mkdir -p $BUILDPATH |
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.
Same goes here and in all the many following lines 😉.
__EOF__ | ||
|
||
# Update project and build | ||
cd $BUILDPATH |
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.
...until here 😄.
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 I don’t understand ...until here😳, I hope the Readme.md can clarify how the script is working
@@ -0,0 +1,350 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
Is this .idea/
folder needed at all?
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.
no needed and deleted 😉
@@ -0,0 +1,97 @@ | |||
#!/bin/bash |
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.
Same comments as for the script above apply also here 😄.
I feel we're on the right path 😉. Btw. could you also create e.g. |
just some stetical changes to readme
grammar changes
Ok, I've taken another look and gave a thought to it. I think we need the following and then I will merge this cool PR!
Let me know if there are any obstackles. I would also like to apologize for commenting on the |
SDL sources are removed 😁. |
Great work! I know that it's old but both implementations still compile! |
Hello friends!
I have written a Nuklear Android demo based on SDL opengles2.
this PR has zero modifications to the main core. It just contain a new demo source code.
I would like to share this demo with other devs in order to get feedbacks and keep improving mobile implementations.
My congratulations for this awesome project.