Monday, April 30, 2012

Linux: Test If My Graphics Card Has OpenGL Support Or Not

OpenGL (Open Graphics Library) is a standard specification defining a cross-language, cross-platform API for writing applications that produce 2D and 3D computer graphics. How can I test if my graphics card has OpenGL support under Linux?

You need to use the glxinfo commmand to get information about the OpenGL and GLX implementations running on a given X display. The information includes details about the server and client side GLX implementation, the OpenGL and GLU implementations as well as a list of available GLX visuals. Open a shell prompt (terminal) and type the following command:
glxinfo
glxinfo | less
glxinfo | grep something
glxinfo | grep rende
Sample Outputs:
direct rendering: Yes
OpenGL renderer string: Quadro FX 570/PCI/SSE2
GL_NV_depth_buffer_float, GL_NV_conditional_render, GL_NV_depth_clamp,
GL_NV_vertex_program3, GL_NVX_conditional_render, GL_SGIS_generate_mipmap,
You can also specify the X display to interrogate, enter:
glxinfo -display :X.Y | grep render
glxinfo -display :0.0 | grep render
 

No comments:

Post a Comment