5#ifndef QSSG_RENDER_CONTEXT_CORE_H
6#define QSSG_RENDER_CONTEXT_CORE_H
19#include <QtQuick3DRuntimeRender/private/qssgrendershaderlibrarymanager_p.h>
20#include <QtQuick3DRuntimeRender/private/qssgrhicustommaterialsystem_p.h>
21#include <QtQuick3DRuntimeRender/private/qtquick3druntimerenderglobal_p.h>
22#include <QtQuick3DRuntimeRender/private/qssgperframeallocator_p.h>
23#include <QtQuick3DRuntimeRender/private/qssgrendershadercache_p.h>
24#include <QtQuick3DRuntimeRender/private/qssgrenderdefaultmaterialshadergenerator_p.h>
25#include <QtQuick3DRuntimeRender/private/qssgrenderbuffermanager_p.h>
26#include <QtQuick3DRuntimeRender/private/qssgrenderer_p.h>
27#include <QtQuick3DRuntimeRender/private/qssgdebugdrawsystem_p.h>
29#include <QtCore/QPair>
30#include <QtCore/QSize>
35class QSSGRendererInterface;
49 std::unique_ptr<QSSGRenderer>
renderer,
50 std::shared_ptr<QSSGShaderLibraryManager> shaderLibraryManager,
51 std::unique_ptr<QSSGShaderCache> shaderCache,
52 std::unique_ptr<QSSGCustomMaterialSystem> customMaterialSystem,
53 std::unique_ptr<QSSGProgramGenerator> shaderProgramGenerator,
54 std::unique_ptr<QSSGRhiContext>
ctx,
55 std::unique_ptr<QSSGDebugDrawSystem> debugDrawSystem =
nullptr);
59 const std::unique_ptr<QSSGRenderer> &
renderer()
const;
60 const std::unique_ptr<QSSGBufferManager> &bufferManager()
const;
61 const std::unique_ptr<QSSGRhiContext> &rhiContext()
const;
62 const std::unique_ptr<QSSGShaderCache> &shaderCache()
const;
63 const std::shared_ptr<QSSGShaderLibraryManager> &shaderLibraryManager()
const;
64 const std::unique_ptr<QSSGCustomMaterialSystem> &customMaterialSystem()
const;
65 const std::unique_ptr<QSSGProgramGenerator> &shaderProgramGenerator()
const;
66 const std::unique_ptr<QSSGDebugDrawSystem> &debugDrawSystem()
const;
82 float dpr()
const {
return m_dpr; }
118 void releaseCachedResources();
120 std::unique_ptr<QSSGRhiContext> m_rhiContext;
121 std::unique_ptr<QSSGShaderCache> m_shaderCache;
122 std::unique_ptr<QSSGBufferManager> m_bufferManager;
123 std::unique_ptr<QSSGRenderer> m_renderer;
124 std::shared_ptr<QSSGShaderLibraryManager> m_shaderLibraryManager;
125 std::unique_ptr<QSSGCustomMaterialSystem> m_customMaterialSystem;
126 std::unique_ptr<QSSGProgramGenerator> m_shaderProgramGenerator;
127 std::unique_ptr<QSSGDebugDrawSystem> m_debugDrawSystem;
The QColor class provides colors based on RGB, HSV or CMYK values.
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtCore\reentrant
void setScissorRect(QRect inScissorRect)
void setViewport(QRect inViewport)
void setSceneColor(const QColor &inSceneColor)
QRect scissorRect() const
QSSGPerFrameAllocator & perFrameAllocator()
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE qreal dpr(const QWindow *w)
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QSvgRenderer * renderer
[0]