SFML community forums
General => General discussions => Topic started by: r_y_n_o on March 25, 2016, 09:28:08 pm
-
I'm making a game, and I'm using shaders.
Today I tried to compile for android and everything crashed.
After a lot of debugging with the logcat, I noticed that shaders were failing to be loaded.
So I went to the source code of SFML and notice that when SFML_OPENGL_ES is defined, all the shaders functions just return false, and nothing else.
Why is that? I mean, shaders are supported since 2.0, shouldn't it be supported by sfml? Online I've seen examples of people using shaders on android with sfml, so I guess there is a way....
-
SFML uses OpenGL ES 1.1 on Android, which doesn't support shaders. So no there's no way, and you can't have seen SFML apps using shaders on Android ;)
-
You should at least document it...
I spent a day trying to figure out the problem, it is not mentioned anywhere in the docs... I mean, it's probably the most relevant information you should give...
Also I had to figure out by myselft that QUADS are not supported by looking at the source code
-
Yeah, sorry for the lack of support. Mobile ports are still experimental (or even unmaintained, for iOS), so they have no official documentation yet.