User avatar
boomonster
Posts: 72
Joined: Fri May 11, 2018 11:18 pm

What is the difference between SDL, OpenGL, and OpenGLES?

Tue Aug 07, 2018 9:02 pm

Hi,

Just curious... What is the difference between Simple DirectMedia Library,
OpenGL, and OpenGLES? I see them used a LOT in this forum, and I don't
know what the difference is from one to the other...

Help!

User avatar
Paeryn
Posts: 2223
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: What is the difference between SDL, OpenGL, and OpenGLES?

Tue Aug 07, 2018 10:37 pm

OpenGL and OpenGL|ES are graphics APIs which primarily deal with rendering 3D triangles (with lighting and texturing) onto a 2D surface. OpenGL|ES is a slimmed down version of OpenGL designed for low power mobile hardware (OpenGL for Embedded Systems). Neither have anything to do with how to display the drawn surface (that's usually down to other libraries like GLX or EGL), nor do they handle any input or audio.

SDL is a library that encompasses everything from creating windows (or managing the screen), drawing, input and audio.

Official OpenGL site.
Official OpenGL|ES site.
Official SDL site.
She who travels light — forgot something.

User avatar
boomonster
Posts: 72
Joined: Fri May 11, 2018 11:18 pm

Re: What is the difference between SDL, OpenGL, and OpenGLES?

Sat Aug 11, 2018 7:02 pm

Okay. Got it.
Thanks!

Return to “Graphics programming”