RmlUi
RmlUi copied to clipboard
Support for Android
Hi,
Im trying compile for Android, but get this error:
In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/nativium/game/ApplicationCoreImpl.cpp:10:
In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellRenderInterfaceOpenGL.h:33:
/Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellOpenGL.h:44:10: fatal error: 'GL/glx.h' file not found
#include <GL/glx.h>
^~~~~~~~~~
Can you add support for it?
Thanks for the great project.
Hi, yeah, it shouldn't be too much trouble to add an Android backend. There are plenty of people already using the library on Android, but it would be nice to have support for the included samples.
It would be great with a contribution, maybe you could add support for this @paulocoutinhox?
In any case it would make sense to add it as a new backend in the backends
branch targeting RmlUi 5.0, see #307 and the existing backends.
Hi,
Im trying make a sample for all platforms (including android), but the error is about opengl dependency:
In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/nativium/game/ApplicationCoreImpl.cpp:10:
In file included from /Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellRenderInterfaceOpenGL.h:33:
/Users/paulo/Developer/workspaces/cpp/nativium-rmlui/nativium/modules/game/implementation/cpp/shell/include/ShellOpenGL.h:44:10: fatal error: 'GL/glx.h' file not found
#include <GL/glx.h>
^~~~~~~~~~
The most problem is with SHELL.
I think that Shell need be compatible with GLES/Vulkan/Metal/Etc.
I was able to use Rml on android using raylib and some custom backend for the rendering and it was easy enough