I am doing a project with C++ in which i need to draw sth on the screen and it must be dynamic. ( for instance, imagine a ball moving in a box ).
What library shall i use in linux? I give the most priority to ease of use and fastness of learning,
all the best,
So you’re writing project and you need a 3D if I understood you well.
I would use GLUTor some other library based on OpenGL.
You can check their documentation, and I think that it shouldn’t be hard to comprehend if you have programming experience.
After you download and install it just include it into header file by typing
# include <GL/glu.h>
# include <GL/glut.h>
and compile it by:
g++ myprog.C -lm -lGL -lGLU -lglut
If you want to compile this for OS X for example you’d changed it to
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
# include <GLUT/glut.h>
and would be compiled like
g++ myprog.C -framework OpenGL -framework GLUT
Unfortunately I don’t know what are you up to so I can’t write you any of the source code that might help you, but you can find dozen tutorials on web on this article.
I hope it helps.
Thank you… this was exactly what i were looking for!