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

Author Topic: GLES3 context on mobile?  (Read 1189 times)

0 Members and 2 Guests are viewing this topic.

Colin Gilbert

  • Newbie
  • *
  • Posts: 1
    • View Profile
GLES3 context on mobile?
« on: January 15, 2015, 06:36:24 pm »
Hi,

I am currently building a mobile game that will require GLES3 features, and SFML seems to support both Android and iOS. Is is possible to create an GLES3 context using SFML? I have poked around the source and it seems to only include GLES2 headers for mobile for its own rendering. However, I saw that one can create a GLES3 context on FreeBSD from this post.

Anyone tried to do so?

Thanks!
Colin

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: GLES3 context on mobile?
« Reply #1 on: January 15, 2015, 07:39:50 pm »
I don't know about Android, but on iOS you can currently only create a GLES1 context. There hasn't been much work yet to support other versions of OpenGL ES.
Laurent Gomila - SFML developer

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: GLES3 context on mobile?
« Reply #2 on: January 16, 2015, 04:56:52 pm »
Android works with GLES1 right now as well. Not sure how much work switching would be, but it's on the schedule I think (even if just to get proper shader support).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: GLES3 context on mobile?
« Reply #3 on: January 16, 2015, 05:09:45 pm »
The version that SFML works with has nothing to do with the version(s) that one can request with sf::ContextSettings. With the desktop implementation, you can request a context that won't support sfml-graphics (a forward compatible one, for example), which is ok if you only use sfml-window.

So even if the mobile ports are based on OpenGL ES 1, nothing prevents from adding the ability to give other versions on demand. It's just a little more work.
Laurent Gomila - SFML developer