/** * This helper queries the current GL context for its extensions, remembers them, and can be * queried. It supports both glGetString- and glGetStringi-style extension string APIs and will * use the latter if it is available. It also will query for EGL extensions if a eglQueryString * implementation is provided.
*/ class SK_API GrGLExtensions { public:
GrGLExtensions() {}
/** * We sometimes need to use this class without having yet created a GrGLInterface. This version * of init expects that getString is always non-NULL while getIntegerv and getStringi are non- * NULL if on desktop GL with version 3.0 or higher. Otherwise it will fail.
*/ bool init(GrGLStandard standard,
GrGLFunction<GrGLGetStringFn> getString,
GrGLFunction<GrGLGetStringiFn> getStringi,
GrGLFunction<GrGLGetIntegervFn> getIntegerv,
GrGLFunction<GrEGLQueryStringFn> queryString = nullptr,
GrEGLDisplay eglDisplay = nullptr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.