How do you use QAbstractOpenGLFunctions?
-
I'm new to OpenGL so this might be a stupid question. I can't see how these classes are supposed to be useful.
There are classes for each version and profile of OpenGL. These classes have explicit methods for all the OpenGL calls supported by each version.
When I start my program:
- I query the video card and ask which version of OpenGL it supports.
- I get a copy of the appropriate class.
How do I write code using this class? I have no idea which object I'm going to get at run time.
Get a base class pointer and only use methods supported by all versions?Thanks