4#ifndef QSGRHIATLASTEXTURE_P_H
5#define QSGRHIATLASTEXTURE_P_H
18#include <QtCore/QSize>
19#include <QtQuick/private/qsgplaintexture_p.h>
20#include <QtQuick/private/qsgareaallocator_p.h>
21#include <QtGui/QSurface>
55 Atlas *m_atlas =
nullptr;
60 int m_atlas_size_limit;
94 bool m_allocated =
false;
112 int m_atlas_transient_image_threshold = 0;
114 uint m_debug_overlay : 1;
159 QRectF m_texture_coords_rect;
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr QRect adjusted(int x1, int y1, int x2, int y2) const noexcept
Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of ...
constexpr QSize size() const noexcept
Returns the size of the rectangle.
Format
Specifies the texture format.
QSGAreaAllocator m_allocator
QRhiTexture * texture() const
void commitTextureOperations(QRhiResourceUpdateBatch *resourceUpdates)
virtual void enqueueTextureUpload(TextureBase *t, QRhiResourceUpdateBatch *resourceUpdates)=0
QSGDefaultRenderContext * m_rc
void remove(TextureBase *t)
virtual bool generateTexture()=0
friend class TextureBasePrivate
QVector< TextureBase * > m_pending_uploads
QSGDefaultRenderContext * renderContext() const
bool generateTexture() override
void enqueueTextureUpload(TextureBase *t, QRhiResourceUpdateBatch *resourceUpdates) override
QRhiTexture::Format format() const
qint64 comparisonKey() const override
Returns a key suitable for comparing textures.
QRect atlasSubRect() const
bool isAtlasTexture() const override
Returns whether this texture is part of an atlas or not.
QRhiTexture * rhiTexture() const override
void commitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates) override
Call this function to enqueue image upload operations to resourceUpdates, in case there are any pendi...
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
QRectF normalizedTextureSubRect() const override
Returns the rectangle inside textureSize() that this texture represents in normalized coordinates.
QRect atlasSubRectWithoutPadding() const
QSGTexture * removedFromAtlas(QRhiResourceUpdateBatch *resourceUpdates) const override
This function returns a copy of the current texture which is removed from its atlas.
QSize textureSize() const override
Returns the size of the texture in pixels.
QRect atlasSubRect() const
void setHasAlphaChannel(bool alpha)
const QImage & image() const
bool hasMipmaps() const override
Returns true if the texture data contains mipmap levels.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLfloat GLfloat GLfloat alpha
QItemEditorFactory * factory