void QTextureViewer::setTexture(const vogl::ktx_texture* pTexture, uint baseMipLevel, uint maxMipLevel) { m_mipmappedTexture.clear(); bool bStatus = m_mipmappedTexture.read_ktx(*pTexture); VOGL_ASSERT(bStatus); if (bStatus) { bStatus = m_mipmappedTexture.convert(vogl::PIXEL_FMT_A8R8G8B8, false, vogl::dxt_image::pack_params()); m_mipmappedTexture.unflip(true, true); VOGL_ASSERT(bStatus); } if (!bStatus) { return; } delete_pixmaps(); m_draw_enabled = true; m_pKtxTexture = pTexture; m_baseMipLevel = baseMipLevel; m_maxMipLevel = maxMipLevel; }
bool NextClientFactory::reset(unsigned long /*changed*/) { // TODO Do not recreate decorations if it is not needed. Look at // ModernSystem for how to do that delete_pixmaps(); create_pixmaps(this); // For now just return true. return true; }
KWMThemeFactory::~KWMThemeFactory() { delete_pixmaps(); }
NextClientFactory::~NextClientFactory() { delete_pixmaps(); }
LaptopClientFactory::~LaptopClientFactory() { delete_pixmaps(); }