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

Method setAlpha

MyGUIEngine/src/MyGUI_PolygonalSkin.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 void PolygonalSkin::setAlpha(float _alpha)
100 {
101 uint32 alpha = ((uint8)(_alpha * 255) << 24);
102 mCurrentColour = (mCurrentColour & 0x00FFFFFF) | (alpha & 0xFF000000);
103
104 if (nullptr != mNode)
105 mNode->outOfDate(mRenderItem);
106 }
107
108 void PolygonalSkin::_correctView()
109 {

Callers

nothing calls this directly

Calls 1

outOfDateMethod · 0.45

Tested by

no test coverage detected