Returns true is the specified version of OpenGL is supported by the graphics card
(or by its driver).
Ex: if (isOpenGLSupported(2, true)) // test if GPU supports OpenGL 2 (hardware support)
if (isOpenGLSupported(3, false)) // test if driver support OpenGL 3 (hardware or software implementation)
version - the version of OpenGL we want to test for (1 to 4)
hard - specify if we query about hardware support (GPU) or not