MCPcopy Create free account
hub / github.com/MyGUI/mygui / setTextureName

Method setTextureName

Tools/LayoutEditor/TextureControl.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void TextureControlLE::setTextureName(const MyGUI::UString& _value)
49 {
50 mTextureSize = MyGUI::texture_utility::getTextureSize(_value);
51 mTexture->setImageTexture(_value);
52
53 mTextureRegion.set(0, 0, mTextureSize.width, mTextureSize.height);
54
55 updateScale();
56 }
57
58 const MyGUI::IntSize& TextureControlLE::getTextureSize() const
59 {

Callers

nothing calls this directly

Calls 2

setImageTextureMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected