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

Method setAlpha

MyGUIEngine/src/MyGUI_TileRect.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void TileRect::setAlpha(float _alpha)
39 {
40 uint32 alpha = ((uint8)(_alpha * 255) << 24);
41 mCurrentColour = (mCurrentColour & 0x00FFFFFF) | (alpha & 0xFF000000);
42
43 if (nullptr != mNode)
44 mNode->outOfDate(mRenderItem);
45 }
46
47 void TileRect::_correctView()
48 {

Callers

nothing calls this directly

Calls 1

outOfDateMethod · 0.45

Tested by

no test coverage detected