Kstars
texturemanager.cpp
146 // FIXME: Check if Qt does this for us already. [Note that it does scale to the nearest power of two]
147 bindImage(image.scaled(tex_size, tex_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), cxt);
bool isNull() const const
int height() const const
bool hasNext() const const
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
Dirs
QString next()
GLuint bindTexture(const QImage &image, GLenum target, GLint format, QGLContext::BindOptions options)
QHash::iterator insert(const Key &key, const T &value)
DefaultBindOption
IgnoreAspectRatio
QHash::const_iterator constEnd() const const
QHash::const_iterator constFind(const Key &key) const const
static TextureManager * Create()
Create the instance of TextureManager.
Definition: texturemanager.cpp:32
AppLocalDataLocation
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
KStandardDirs * dirs()
static const QImage & getImage(const QString &name)
Return texture image.
Definition: texturemanager.cpp:48
SmoothTransformation
static void discoverTextureDirs()
Clear the cache and discover the directories to load textures from.
Definition: texturemanager.cpp:158
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:02:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:02:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.