12#if QT_CONFIG(quick_sprite)
18#include <private/qsgrenderer_p.h>
29 , m_vgContext(
nullptr)
30 , m_glyphCacheManager(
nullptr)
39 qFatal(
"Invalid OpenVG render context parameters");
41 m_vgContext = vgparams->
context;
48 m_vgContext =
nullptr;
49 delete m_glyphCacheManager;
50 m_glyphCacheManager =
nullptr;
66 if (tmp.
width() > maxSize || tmp.
height() > maxSize) {
125 format.setMajorVersion(1);
141 VGint
width = vgGeti(VG_MAX_IMAGE_WIDTH);
142 VGint
height = vgGeti(VG_MAX_IMAGE_HEIGHT);
147#if QT_CONFIG(quick_sprite)
148QSGSpriteNode *QSGOpenVGContext::createSpriteNode()
181 if (!m_glyphCacheManager)
QImage scaled(int w, int h, Qt::AspectRatioMode aspectMode=Qt::IgnoreAspectRatio, Qt::TransformationMode mode=Qt::FastTransformation) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
QObject * parent() const
Returns a pointer to the parent object.
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
The QRawFont class provides access to a single physical instance of a font.
The QSGContext holds the scene graph entry points for one QML engine.
The QSGImageNode class is provided for convenience to easily draw textured content using the QML scen...
QSurfaceFormat defaultSurfaceFormat() const override
QSGNinePatchNode * createNinePatchNode() override
QSGRenderContext * createRenderContext() override
QSGGlyphNode * createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode, int renderTypeQuality) override
QSGOpenVGContext(QObject *parent=nullptr)
QSGLayer * createLayer(QSGRenderContext *renderContext) override
QSGInternalImageNode * createInternalImageNode(QSGRenderContext *renderContext) override
QSGImageNode * createImageNode() override
QSGInternalRectangleNode * createInternalRectangleNode() override
QSGRectangleNode * createRectangleNode() override
QSGPainterNode * createPainterNode(QQuickPaintedItem *item) override
QSGRendererInterface * rendererInterface(QSGRenderContext *renderContext) override
Returns a pointer to the (presumably) global renderer interface.
QSGOpenVGFontGlyphCache * cache(const QRawFont &font)
void insertCache(const QRawFont &font, QSGOpenVGFontGlyphCache *cache)
ShaderSourceTypes shaderSourceType() const override
void renderNextFrame(QSGRenderer *renderer) override
int maxTextureSize() const override
static const int INIT_PARAMS_MAGIC
ShaderType shaderType() const override
GraphicsApi graphicsApi() const override
Returns the graphics API that is in use by the Qt Quick scenegraph.
void initialize(const QSGRenderContext::InitParams *params) override
void invalidate() override
ShaderCompilationTypes shaderCompilationType() const override
QSGRenderer * createRenderer(QSGRendererInterface::RenderMode renderMode=QSGRendererInterface::RenderMode2D) override
QSGTexture * createTexture(const QImage &image, uint flags) const override
QSGOpenVGFontGlyphCache * glyphCache(const QRawFont &rawFont)
The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegrap...
virtual void initialize(const InitParams *params)
virtual void invalidate()
An interface providing access to some of the graphics API specific internals of the scenegraph.
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
GraphicsApi
\value Unknown An unknown graphics API is in use \value Software The Qt Quick 2D Renderer is in use \...
ShaderType
\value UnknownShadingLanguage Not yet known due to no window and scenegraph associated \value GLSL GL...
The renderer class is the abstract baseclass used for rendering the QML scene graph.
QCache< int, Employee > cache
[0]
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
constexpr const T & qMin(const T &a, const T &b)
GLint GLsizei GLsizei height
GLint GLsizei GLsizei GLenum format
QSvgRenderer * renderer
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent