Register
raylib»Forums»rlgl OpenGL 1.1?
1 posts
rlgl OpenGL 1.1?
1 month ago Edited by BalrogGun on Oct. 17, 2019, 3:18 p.m. Reason: Initial post
i still can't understand... how opengl 1.1 is used in rlgl? if i wanna to learn modern opengl 3.3+ on www.learnopengl.com, i can't learn with raylib?
Ray
57 posts / 1 project

I love videogames development.

rlgl OpenGL 1.1?
1 month ago
Hello BalrogGun,

rlgl is an abstraction layer for various OpenGL versions (1.1, 2.1, 3.3 and ES2.0), depending on the selected version when compiling rlgl (using flag GRAPHICS_API_OPENGL_xx), rl*() calls are adapted to different OpenGL versions.

raylib is not primary intended to learn OpenGL, it actually tries to make things simple to avoid worrying about OpenGL... but you can check rlgl code to see how OpenGL is used, code is quite organized and commented.

There is also a rlgl_standalone example to use only that abstraction layer independently of raylib.