Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDL vs GLUT in opengl 3D programming

I'm beginning a series of tutorials on SDL. Before I dig too far, I'd like to know what type of control SDL gives me over GLUT?

Also, do either support webcam access (for face tracking or motion detection), or is that best managed through OpenCV?

like image 634
BinRoot Avatar asked Dec 17 '10 19:12

BinRoot


1 Answers

Neither SDL nor GLUT have any facility for webcams. They are completely webcam-agnostic.

As to your other question: GLUT is unmaintained. It has not seen any updates in well over a decade. It has been partially supplanted by FreeGLUT (which is a binary-compatible replacement), but neither GLUT nor FreeGLUT support OpenGL 3.0+. Nor do they have features like sound support.

SDL and many other libraries (like GLFW, SFML, and so on) have support for newer versions of OpenGL, and SDL, SFML, and others have basic audio support.

It's quite safe to consider GLUT and the like as deprecated.

like image 167
greyfade Avatar answered Nov 10 '22 15:11

greyfade