![]() |
Stellarium
HEAD
|
Namespace containing some OpenGL helpers. More...
Typedefs | |
| using | BaseFunctions = QOpenGLFunctions_1_0 |
| using | HighGraphicsFunctions = QOpenGLFunctions_3_3_Core |
Enumerations | |
| enum | ShaderType { VERTEX_SHADER , FRAGMENT_SHADER , GEOMETRY_SHADER } |
Functions | |
| const char * | getGLErrorText (GLenum code) |
| Converts a GLenum from glGetError to a string. | |
| int | checkGLErrors (const char *file, int line) |
| Retrieves and prints all current OpenGL errors to console (glGetError in a loop). Returns number of errors. | |
| void | clearGLErrors () |
| Clears all queued-up OpenGL errors without handling them. | |
| QByteArray | globalShaderPrefix (ShaderType) |
| Returns a prefix containing #version directive and a few defines for. | |
| HighGraphicsFunctions * | highGraphicsFunctions () |
| Returns high-graphics OpenGL functions, for use in non-ANGLE/CompatProfile/etc. modes. | |
Variables | |
| QOpenGLContext * | mainContext |
| The main context as created by the StelMainView (only used for debugging) | |
Namespace containing some OpenGL helpers.