OpenGL installed
Hello
How can i be sure that somebody have OpenGL installed on his/her linux? In example: an requiring library that evry opengl implentation has. Thanx Hylke |
I have found that If i can use glxgears , and the frame rates indicate that the 3d acceleration is going on than all the proper libraries are in place,,,
|
Also check to make sure the video card says 3d support enabled. What graphics card is it?
|
glxinfo will tell you if opengl is working... Tells you all the gl functions available.
|
But what i mean is:
I'm writing a bash script that needs to check if opengl is installed. So how can i do that? btw, from glxgears: 16134 frames in 5.0 seconds = 3226.800 FPS :P |
A script to grep glxinfo?
|
No i mean:
I've written a program that requires OpenGL, so i want to check if the user has OpenGL installed. |
I thought a script that ran glxinfo and grep'ed the result might do that, by looking for key statements in the glxinfo output like Direct Rendering: yes and various glx etentions, etc...
|
Uhmm..
I dont really understand what you mean. I just want to know if a user has OpenGL installed using a bash script. Thanx Hylke |
All times are GMT -5. The time now is 09:39 AM. |