GLStateDumpExt QML Type
Provides means to print current GL driver state info. More...
| Import Statement: | import QtCanvas3D 1.1 | 
| Since: | QtCanvas3D 1.0 | 
Methods
- string getGLStateDump(stateDumpEnums options)
 
Detailed Description
Deprecated in Qt 5.12. An uncreatable QML type that provides an extension API that can be used to dump current OpenGL driver state as a string that can be then, for example, be printed on the console log. You can get it by calling Context3D.getExtension with "QTCANVAS3D_gl_state_dump" as parameter.
Typical usage could be something like this:
// Declare the variable to contain the extension
var stateDumpExt;
.
.
// After the context has been created from Canvas3D get the extension
stateDumpExt = gl.getExtension("QTCANVAS3D_gl_state_dump");
.
.
// When you want to print the current GL state with everything enabled
// Check that you indeed have a valid extension (for portability) then use it
if (stateDumpExt)
    log("GL STATE DUMP:\n"+stateDumpExt.getGLStateDump(stateDumpExt.DUMP_FULL)); See also Context3D.
Method Documentation
string getGLStateDump(stateDumpEnums options)
* Deprecated in Qt 5.12. * Returns OpenGL driver state with given options as a human readable string that can be printed. * Optional paremeter options may contain bitfields masked together from following options: *
- 
GLStateDumpExt.DUMP_BASIC_ONLYIncludes only very basic OpenGL state information. * - 
GLStateDumpExt.DUMP_VERTEX_ATTRIB_ARRAYS_BITIncludes all vertex attribute array * information. * - 
GLStateDumpExt.DUMP_VERTEX_ATTRIB_ARRAYS_BUFFERS_BITIncludes size and type * from all currently active vertex attribute arrays (including the currently bound element array) * to verify that there are actual values in the array. * - 
GLStateDumpExt.DUMP_FULLIncludes everything. * 
* This command is handled synchronously.
    © The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
    https://doc.qt.io/qt-5.12/qml-qtcanvas3d-glstatedumpext.html