zoukankan      html  css  js  c++  java
  • cegui 的透明纹理

    这里说的 透明 是要用cegui实现的 要加background的 这个属性false

    this->_textures[tex] = mGUIRenderer->createTexture(texName, "General"); 
    this->_imageSets[tex] = CEGUI::ImagesetManager::getSingleton().createImageset(name, _textures[tex]); 
    this->_imageSets[tex]->setAutoScalingEnabled (true); 
    this->_imageSets[tex]->defineImage (name,pos, CEGUI::Size(_textures[tex]->getWidth(), _textures[tex]->getHeight()), CEGUI::Point(0, 0)); 

    this->_staticImages[tex] = (CEGUI::StaticImage*)CEGUI::WindowManager::getSingleton().createWindow((CEGUI::utf8*)"TaharezLook/StaticImage", (CEGUI::utf8*)name.c_str()); 
    this->_staticImages[tex]->setFrameEnabled(false); 
    this->_staticImages[tex]->setVisible(true); 
    this->_staticImages[tex]->setRiseOnClickEnabled(false); 
    this->_staticImages[tex]->setSize(size); 
    this->_staticImages[tex]->setPosition(pos); 
    this->_staticImages[tex]->setImage(&this->_imageSets[tex]->getImage((CEGUI::utf8*)name.c_str())); 
    mEditorGuiSheet->addChildWindow(this->_staticImages[tex]);


    +



    this->_staticImages[tex]->setBackgroundEnabled(false);


    =============================================================

  • 相关阅读:
    sum left join 多次引发的问题
    WPF之Binding基础三 Binding的路径Path
    解决Android Studio启动不了的办法
    指向常量的指针和常量指针的区别简单理解
    简单的字符串操作
    QT问答
    log4qt使用示例
    在线代码库
    Qt5的windows开放环境准备
    QT 调试技术
  • 原文地址:https://www.cnblogs.com/minggoddess/p/1932806.html
Copyright © 2011-2022 走看看