MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / InitTextureEx

Method InitTextureEx

ogsr_engine/xrGame/ui/UIStatic.cpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116u32 CUIStatic::GetTextureColor() const { return m_UIStaticItem.GetColor(); }
117
118void CUIStatic::InitTextureEx(LPCSTR tex_name, LPCSTR sh_name)
119{
120 m_texture = tex_name;
121 m_shader = sh_name;
122
123 LPCSTR res_shname = UIRender->UpdateShaderName(tex_name, sh_name);
124 CUITextureMaster::InitTexture(tex_name, res_shname, &m_UIStaticItem);
125
126 Fvector2 p = GetWndPos();
127 m_UIStaticItem.SetPos(p.x, p.y);
128 m_bAvailableTexture = true;
129}
130
131void CUIStatic::Draw()
132{

Callers 3

InitInternalMethod · 0.80
CreateDragItemMethod · 0.80
InitTextureMethod · 0.80

Calls 2

UpdateShaderNameMethod · 0.80
SetPosMethod · 0.45

Tested by

no test coverage detected