| 71 | } |
| 72 | |
| 73 | void ColourPanel::createTexture() |
| 74 | { |
| 75 | int size = 32; |
| 76 | mTexture = MyGUI::RenderManager::getInstance().createTexture(mTextureName); |
| 77 | mTexture->createManual( |
| 78 | size, |
| 79 | size, |
| 80 | MyGUI::TextureUsage::Static | MyGUI::TextureUsage::Write, |
| 81 | MyGUI::PixelFormat::R8G8B8A8); |
| 82 | |
| 83 | mColourRect->setImageTexture(mTextureName); |
| 84 | } |
| 85 | |
| 86 | void ColourPanel::destroyTexture() |
| 87 | { |
no test coverage detected