I am developing a 3D application for RPi 3 B+ using OpenGL ES. As I know there are plenty of tutorials and books but they are mostly for either OpenGL-ES 3.0, Android or iOS. I far as I know RPi 3 supports OpenGLES 2.0 but I am unable to get proper and latest developments regarding OpenGL-ES2.0. I am completely new to OpenGL/OpenGL-ES. Recently I got enrolled in OpenGL course using C++ but later realised that it's not possible on RPi3 as OpenGL and OpenGL-ES are totally different.
I also have tried PyOpenGL on RPi3, able to run it (it uses gl_Begin and gl_End, which is the immediate mode, so it is old and outdated as OpenGLES 2.0 doesn't support it). But I am not sure how it is able to render cube without problems.
Also regarding windowing library, I am able to use and create OpenGL context using GLFW but also I have read on Khronos website that EGL acts as windowing system for mobile systems. So I am confused even more now whether to use GLFW or EGL
So can somebody point me in the right direction especially :
- From where do I start learning OpenGL ES 2.0 for RPi-3 B+
- Which books to refer
- Whether should I continue using GLFW or should I use EGL.
I am comfortable with Python and C/C++. Any kind of help is appreciated, Thanks.