Skip to content
Advertisement

Tag: opengl

How to tell which version of OpenGL my graphics card supports on Linux

I am trying to figure out which version of OpenGL my graphics card and driver currently support. This answer suggests running glxinfo | grep OpenGL which if fine, but here is (some) of that output: So it is hard to tell, is it 4.5 or 4.6? Also the official documentation from nVidia does not mention the answer either! Answer That

Is there a way to automatically link all libraries an OpenGL program needs, without explicitly writing their flags on compile?

For an entry level program, I’m currently compiling with g++ manip.c -o manip -lglfw3 -lX11 -lXxf86vm -lXrandr -lpthread -ldl -lXinerama -lXcursor -lGLEW It was a very time-consuming process of trial and error figuring out which flags were necessary, googling the ‘undefined references to’, copy pasting every flag I came across and then deleting flags one by one until I had

Advertisement