Is there a way to initialize using OpenGL ES 2.0? #43

Open
jgranick opened this Issue Jan 24, 2013 · 3 comments

Projects

None yet

2 participants

@jgranick
Member

Hi!

Do you think it would be possible for this to work using OpenGL ES 2.0?

I know that OpenGL ES 1.0 is hard-coded into the EGL initialization code, but I wasn't sure if you knew if it would be that simple, or if there would be other problems that would occur?

Thanks

@jnicholl
Member

The main problem was that I didn’t have a good way to expose the ability to switch between ES 2.0 and ES 1, and most of the apps that were using SDL at the time seemed to be for desktop OpenGL 1, which was closer to ES 1 than ES 2.0.
I didn’t really try ES 2.0 – I think making the EGL changes should be sufficient.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@jgranick
Member

Alright, then I'll try to take a look. On webOS, they back-ported an attribute from SDL 1.3 (2.0), SDL_GL_CONTEXT_MAJOR_VERSION.

On the OS they defaulted to OpenGL ES 2.0, but required that you set SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1); if you needed 1.1 instead.

Maybe that would be the "right" way of handling it, with the exception of using OpenGL ES 2.0 by default

@jnicholl
Member

That seems pretty reasonable. Feel free to do the same, if you’re feeling ambitious. I won’t have time to get around to it for a little while yet.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment