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

Method setTextureRegion

Tools/EditorFramework/TextureControl.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 void TextureControl::setTextureRegion(const MyGUI::IntCoord& _value)
65 {
66 mTextureRegion = _value;
67 mTexture->setImageCoord(mTextureRegion);
68 mTexture->setImageTile(mTextureRegion.size());
69 mTexture->setImageIndex(0);
70
71 updateScale();
72 }
73
74 const MyGUI::IntCoord& TextureControl::getTextureRegion() const
75 {

Callers

nothing calls this directly

Calls 4

setImageCoordMethod · 0.80
setImageTileMethod · 0.80
sizeMethod · 0.45
setImageIndexMethod · 0.45

Tested by

no test coverage detected