Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML and OpenGL ES 2.0 context  (Read 6347 times)

0 Members and 1 Guest are viewing this topic.

Lichi

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
SFML and OpenGL ES 2.0 context
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML and OpenGL ES 2.0 context
« Reply #1 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 ;)
Laurent Gomila - SFML developer

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
Re: SFML and OpenGL ES 2.0 context
« Reply #2 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?

keilmillerjr

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: SFML and OpenGL ES 2.0 context
« Reply #3 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). 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, and am curious what direction sfml is heading with rendering.

Thank you.
« Last Edit: May 13, 2019, 09:26:11 am by Laurent »

Miso Kim

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: SFML and OpenGL ES 2.0 context
« Reply #4 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
« Last Edit: December 18, 2019, 03:04:27 pm by Miso Kim »

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
Re: SFML and OpenGL ES 2.0 context
« Reply #5 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.