That would be awesome, thanks
OK, here is the quick an dirty fix to make the ESFML-Code on Github run with EGL under Linux.
I don't have my AC100 here to test it, so I hope I didn't forget anything:
WindowImplX11.cppChange Line 31:
#include <sfml/window/Linux/GlxContext.hpp>
to:
#ifndef SFML_EMBEDDED_SYSTEM
#include <sfml/window/Linux/GlxContext.hpp>
#else
#include <sfml/window/Linux/EGLContext.hpp>
#endif
Change Line 152:
XVisualInfo visualInfo = GlxContext::selectBestVisual(m_display, mode.bitsPerPixel, settings);
to:
#ifndef SFML_EMBEDDED_SYSTEM
XVisualInfo visualInfo = GlxContext::selectBestVisual(m_display, mode.bitsPerPixel, settings);
#else
XVisualInfo visualInfo = _EGLContext::selectBestVisual(m_display, mode.bitsPerPixel, settings);
#endif
EGLContext.hppAdd:
static XVisualInfo selectBestVisual(::Display* display, unsigned int bitsPerPixel, const ContextSettings& settings);
EGLContext.cppAdd:
XVisualInfo _EGLContext::selectBestVisual(::Display* display, unsigned int bitsPerPixel, const ContextSettings& settings)
{
// Retrieve all the visuals
int count;
XVisualInfo* visuals = XGetVisualInfo(display, 0, NULL, &count);
if (visuals)
{
XVisualInfo bestVisual;
//ToDo: Calculate best Visual
//select first Visual for now
bestVisual = visuals[0];
return bestVisual;
}
else
{
// Should never happen...
err() << "No EGL visual found. You should check your graphics driver" << std::endl;
return XVisualInfo();
}
}