![]() |
Qt 6.x
The Qt SDK
|
#include <qopengltextureuploader_p.h>
Public Types | |
enum | BindOption { NoBindOption = 0x0000 , PremultipliedAlphaBindOption = 0x0001 , UseRedForAlphaAndLuminanceBindOption = 0x0002 , SRgbBindOption = 0x0004 , PowerOfTwoBindOption = 0x0008 } |
Static Public Member Functions | |
static qsizetype | textureImage (GLenum target, const QImage &image, BindOptions options, QSize maxSize=QSize()) |
Definition at line 26 of file qopengltextureuploader_p.h.
Enumerator | |
---|---|
NoBindOption | |
PremultipliedAlphaBindOption | |
UseRedForAlphaAndLuminanceBindOption | |
SRgbBindOption | |
PowerOfTwoBindOption |
Definition at line 29 of file qopengltextureuploader_p.h.
|
static |
Definition at line 85 of file qopengltextureuploader.cpp.
References QOpenGLExtensions::BGRATextureFormat, QSize::boundedTo(), QImage::bytesPerLine(), QImage::constBits(), context, QImage::copy(), QSurfaceFormat::CoreProfile, cost(), QOpenGLContext::currentContext(), QImage::depth(), QImage::Format_A2BGR30_Premultiplied, QImage::Format_A2RGB30_Premultiplied, QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_BGR30, QImage::Format_BGR888, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Invalid, QImage::Format_RGB16, QImage::Format_RGB30, QImage::Format_RGB32, QImage::Format_RGB444, QImage::Format_RGB555, QImage::Format_RGB666, QImage::Format_RGB888, QImage::Format_RGBA16FPx4, QImage::Format_RGBA16FPx4_Premultiplied, QImage::Format_RGBA32FPx4, QImage::Format_RGBA32FPx4_Premultiplied, QImage::Format_RGBA64, QImage::Format_RGBA64_Premultiplied, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, QImage::Format_RGBX16FPx4, QImage::Format_RGBX32FPx4, QImage::Format_RGBX64, QImage::Format_RGBX8888, funcs, GL_BGR, GL_BGRA, GL_BLUE, GL_FLOAT, GL_GREEN, GL_HALF_FLOAT, GL_RED, GL_RGB10_A2, GL_RGBA, GL_RGBA16, GL_RGBA16F, GL_RGBA32F, GL_SRGB, GL_SRGB_ALPHA, GL_TEXTURE_SWIZZLE_A, GL_TEXTURE_SWIZZLE_B, GL_TEXTURE_SWIZZLE_G, GL_TEXTURE_SWIZZLE_R, GL_UNSIGNED_BYTE, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_SHORT_5_6_5, GLenum(), GLuint, QImage::height(), QSize::height(), Qt::IgnoreAspectRatio, QSize::isEmpty(), PowerOfTwoBindOption, PremultipliedAlphaBindOption, Q_ASSERT, QByteArrayLiteral, qNextPowerOfTwo(), QImage::rect(), QImage::scaled(), QSize::setHeight(), QSize::setWidth(), QImage::size(), Qt::SmoothTransformation, SRgbBindOption, QOpenGLExtensions::TextureSwizzle, UseRedForAlphaAndLuminanceBindOption, QImage::width(), and QSize::width().