25class Q_QUICK_EXPORT QSGDefaultContext :
public QSGContext,
public QSGRendererInterface
28 QSGDefaultContext(QObject *parent =
nullptr);
31 void renderContextInitialized(QSGRenderContext *renderContext) override;
32 void renderContextInvalidated(QSGRenderContext *) override;
33 QSGRenderContext *createRenderContext() override;
34 QSGInternalRectangleNode *createInternalRectangleNode() override;
35 QSGInternalImageNode *createInternalImageNode(QSGRenderContext *renderContext) override;
36 QSGPainterNode *createPainterNode(QQuickPaintedItem *item) override;
37 QSGGlyphNode *createGlyphNode(QSGRenderContext *rc, QSGTextNode::RenderType renderType,
int renderTypeQuality) override;
38 QSGInternalTextNode *createInternalTextNode(QSGRenderContext *renderContext) override;
39 QSGLayer *createLayer(QSGRenderContext *renderContext) override;
40 QSurfaceFormat defaultSurfaceFormat()
const override;
41 QSGRendererInterface *rendererInterface(QSGRenderContext *renderContext) override;
42 QSGRectangleNode *createRectangleNode() override;
43 QSGImageNode *createImageNode() override;
44 QSGNinePatchNode *createNinePatchNode() override;
45#if QT_CONFIG(quick_sprite)
46 QSGSpriteNode *createSpriteNode() override;
48 QSGGuiThreadShaderEffectManager *createGuiThreadShaderEffectManager() override;
49 QSGShaderEffectNode *createShaderEffectNode(QSGRenderContext *renderContext) override;
51 void setDistanceFieldEnabled(
bool enabled);
52 bool isDistanceFieldEnabled()
const;
54 GraphicsApi graphicsApi()
const override;
55 void *getResource(QQuickWindow *window, Resource resource)
const override;
56 ShaderType shaderType()
const override;
57 ShaderCompilationTypes shaderCompilationType()
const override;
58 ShaderSourceTypes shaderSourceType()
const override;
62 QSGContext::AntialiasingMethod m_antialiasingMethod;
63 bool m_distanceFieldDisabled;
64 QSGDistanceFieldGlyphNode::AntialiasingMode m_distanceFieldAntialiasing;
65 bool m_distanceFieldAntialiasingDecided;