Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

Android SDL opengles2 implementation

Open leonelhs opened this issue 3 years ago • 5 comments

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.

leonelhs avatar Feb 21 '22 05:02 leonelhs

I totally want to merge this PR! Thanks for the effort!

I'm now contemplating the following:

  1. The PR is huge because of a lot of generated files. I think we should definitely provide a way (a simple script in shell/Python/... or in the worst case a maximally detailed TODO.md file) describing how to generate the files instead of providing the generated files themself.
  2. In addition to (1), should we also provide some of the pre-generated files in case the script from (1) stops working (an evergreen when it comes to programming for Android), so that one still has at least something to quickly start with (before someone corrects the script in this repo)?

What do people programming for recent Android think about this?

And what do others think?

dumblob avatar Feb 21 '22 08:02 dumblob

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. Actually SDL forums lead me to here.

leonelhs avatar Feb 22 '22 09:02 leonelhs

I feel we're on the right path :wink:.

Btw. could you also create e.g. demo/android/README.md with a detailed code snippet which would fetch the newest released version of https://github.com/libsdl-org/SDL/tree/main/android-project , rename it to project-template.new/, move all the needed stuff from the current project-template/ to the new one, then rename project-template/ to project-template.old/, then rename project-template.new/ to project-template/ and then finally remove project-template.old/?

dumblob avatar Feb 24 '22 11:02 dumblob

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!

  1. remove SDL sources from this PR altogether
  2. if the SDL sources in this PR are patched by you, then provide only the patches and a makefile or at least a detailed description how to apply them

Let me know if there are any obstackles.

I would also like to apologize for commenting on the build.sh script - I've compared it to the SDL upstream's androidbuild.sh and almost fell over as they don't use "" around variables etc. But because it's much more important to stay as close to upstream as possible, I will not require these to be fixed in your PR to minimize the diff to the upstream file. I'll instead consider filing a bug in the SDL upstream tracker once I will recover from the fell over :wink:.

dumblob avatar Apr 11 '22 09:04 dumblob

SDL sources are removed 😁. Feel free to comment or improve scripts.

leonelhs avatar Apr 21 '22 22:04 leonelhs