Say, I have an app where I'd decide to draw the entire UI in OpenGL. Then:
- Is it in principle possible to have this application build from the same codebase for both, say, Linux (as an OpenGL application), and for Android - possibly by using two separate
make
calls (for instance, something likemake linux
vs.make android
)? - Is there an existing example for something like this already, which I could consult?
Slightly more complicated - let's say in this application, I'd use some of the Android API, say screen rotation. Would it be in principle possible to build a Linux OpenGL version out of it, such that the Android-specific functionality will be automatically removed, without placing #ifdef
s manually?
Thanks in advance for any pointers,
Cheers!