I'm writing a game engine using opengl 3.3/SDL/glew/Linux (Ubuntu 11.04). I want to keep the possibility to deploy on mobile (OpenGL ES 2). This means that I have to stay somewhat OpenGL ES 2.0 compatible. Therefore my question is: Is it possible to create an OpenGL ES 2.0 context using SDL/(existing patch on SDL).
相关问题
- Is shmid returned by shmget() unique across proces
- Why doesn't php sleep work in the windows-subs
- how to get running process information in java?
- Installing Pydev for Eclipse throws error
- Error building gcc 4.8.3 from source: libstdc++.so
Rather than the PowerVR SDK that requires a registration, you can use the ARM Mali equivalent that is an open download. Here it is: http://www.malideveloper.com/opengl-es-20-emulator.php. They can run on a Mesa software path if you don't have OpenGL 2.0 hardware underneath.
You don't need a GL ES 2.0 context on PC, you can use OpenGL 4.1, which has the
GL_ARB_es2_compatibility
, which adds the OpenGL ES functions that weren't in OpenGL, making them API compatible.Instead of using a nonofficial/patched version of SDL 1.2 you could simply use SDL 1.3.
Quoting myself on another question: