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

Method setImageTexture

MyGUIEngine/src/MyGUI_ImageBox.cpp:83–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void ImageBox::setImageTexture(std::string_view _texture)
84 {
85 mCurrentTextureName = _texture;
86 mSizeTexture = texture_utility::getTextureSize(mCurrentTextureName);
87
88 // если первый раз, то ставим во всю текстуру
89 if (mItems.empty())
90 {
91 _setUVSet(FloatRect(0, 0, 1, 1));
92 _setTextureName(mCurrentTextureName);
93 }
94 else
95 {
96 recalcIndexes();
97 updateSelectIndex(mIndexSelect);
98 }
99 }
100
101 void ImageBox::recalcIndexes()
102 {

Callers 13

createSceneMethod · 0.80
createSceneMethod · 0.80
createSceneMethod · 0.80
notifyEventActionMethod · 0.80
createTextureMethod · 0.80
setTextureNameMethod · 0.80
createTextureMethod · 0.80
updateMethod · 0.80
updatePropertyMethod · 0.80
setTextureValueMethod · 0.80

Calls 2

FloatRectFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected