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

Method InitTexture

ogsr_engine/xrGame/ui/UIXmlInit.cpp:1133–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131}
1132
1133bool CUIXmlInit::InitTexture(CUIXml& xml_doc, const char* path, int index, IUIMultiTextureOwner* pWnd)
1134{
1135 string256 buf;
1136 shared_str texture;
1137
1138 strconcat(sizeof(buf), buf, path, ":texture");
1139 if (xml_doc.NavigateToNode(buf))
1140 texture = xml_doc.Read(buf, index, NULL);
1141
1142 if (!!texture)
1143 {
1144 pWnd->InitTexture(*texture);
1145 return true;
1146 }
1147
1148 return false;
1149}
1150
1151bool CUIXmlInit::InitTexture(CUIXml& xml_doc, const char* path, int index, IUISingleTextureOwner* pWnd)
1152{

Callers 1

InitMultiTextureMethod · 0.45

Calls 12

GetColorFunction · 0.85
NavigateToNodeMethod · 0.80
ReadAttribMethod · 0.80
InitTextureExMethod · 0.80
ReadAttribFltMethod · 0.80
ReadAttribIntMethod · 0.80
ReadMethod · 0.45
SetStretchTextureMethod · 0.45
SetTextureColorMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
SetOriginalRectMethod · 0.45

Tested by

no test coverage detected