Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgsoftwarepixmaptexture.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5#include <private/qsgcontext_p.h>
6
8
10{
11 // Prevent pixmap format conversion to reduce memory consumption
12 // and surprises in calling code. (See QTBUG-47328)
14 //If texture should have an alpha
16 } else {
17 //Force opaque texture
19 }
20}
21
26
28{
29 return m_pixmap.size();
30}
31
33{
34 return m_pixmap.hasAlphaChannel();
35}
36
38{
39 return false;
40}
41
46
48
49#include "moc_qsgsoftwarepixmaptexture_p.cpp"
\inmodule QtGui
Definition qimage.h:37
@ Format_RGB32
Definition qimage.h:46
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
QSize size() const
Returns the size of the pixmap.
Definition qpixmap.cpp:493
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
Definition qpixmap.cpp:1437
bool hasAlphaChannel() const
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
bool hasMipmaps() const override
Returns true if the texture data contains mipmap levels.
QSize textureSize() const override
Returns the size of the texture in pixels.
qint64 comparisonKey() const override
Returns a key suitable for comparing textures.
QSGSoftwarePixmapTexture(const QImage &image, uint flags)
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
@ NoFormatConversion
Definition qnamespace.h:501
Definition image.cpp:4
GLbitfield flags
unsigned int uint
Definition qtypes.h:34
long long qint64
Definition qtypes.h:60
widget render & pixmap