SFML community forums

Help => Graphics => Topic started by: Lichi on October 14, 2016, 03:09:22 am

Title: SFML and OpenGL ES 2.0 context
Post by: Lichi on October 14, 2016, 03:09:22 am
Hi, i'm doing a cross-platform game (should work on android), i'm using sf::shaders for some effects, but I can't use sf::shaders in android because sfml uses opengl ES 1.1(wich not supports shaders), I want to know if there is any way to use SFML with opengl ES 2.0 context, or if it's planned to update SFML's opengl ES to 2.0.
Thanks.
Title: Re: SFML and OpenGL ES 2.0 context
Post by: Laurent on October 14, 2016, 06:27:25 am
No it is not possible, and yes we'll eventually switch to modern OpenGL on all supported platforms ;)
Title: Re: SFML and OpenGL ES 2.0 context
Post by: oomek on January 11, 2019, 04:44:42 am
I'm sorry for digging out an old topic, but I need to ask if there are any news regarding the support for GLES 2.0?
Title: Re: SFML and OpenGL ES 2.0 context
Post by: keilmillerjr on May 13, 2019, 08:48:41 am
Hello! Zero experience with SFML side of things. I’ve been scripting for an app that uses SFML (AttractMode (http://attractmode.org)). I ran into an interesting bug that did not occur running the app on my mac, but did on my raspberry pi 3b+ running raspbian stretch lite. It’s a bit unclear to me what OpenGL or GLES version is needed or used for each platform. However, @oomek is more experienced than I and seems to have narrowed my issue down to "glBlendFuncSeparate works only in GLES 2.0“.

I have seen this older thread (https://en.sfml-dev.org/forums/index.php?topic=23887.0), and am curious what direction sfml is heading with rendering.

Thank you.
Title: Re: SFML and OpenGL ES 2.0 context
Post by: Miso Kim on December 18, 2019, 03:02:04 pm
I've just enabled OpenGL-ES 2.0 context based on raspberry pi support code.
I'm looking for co-existing OpenGL-ES and OpenGL-ES 2.0 on the same library.
Of course OpenGL-ES 2.0 is more flexible than OpenGL-ES 1.x these days.

Here is my github repository for it.
https://github.com/meesokim/RPI-SDL2-GLES2.git
Title: Re: SFML and OpenGL ES 2.0 context
Post by: oomek on December 18, 2019, 03:31:22 pm
How does it relate to SFML? You just opened a window with SFML and created a context with imgui.
The flag SFML_OPENGL_ES2 you have defined does not even exist elsewhere.