Kstars
texturemanager.cpp
144 // FIXME: Check if Qt does this for us already. [Note that it does scale to the nearest power of two]
145 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
bool isEmpty() const const
QHash::const_iterator constFind(const Key &key) const const
static TextureManager * Create()
Create the instance of TextureManager.
Definition: texturemanager.cpp:30
AppLocalDataLocation
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
static const QImage & getImage(const QString &name)
Return texture image.
Definition: texturemanager.cpp:46
SmoothTransformation
static void discoverTextureDirs()
Clear the cache and discover the directories to load textures from.
Definition: texturemanager.cpp:156
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:02:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:02:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.