MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetLoadingImage

Method SetLoadingImage

CrySystem/XConsole.cpp:1715–1734  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1713
1714//////////////////////////////////////////////////////////////////////////
1715void CXConsole::SetLoadingImage(const char *szFilename )
1716{
1717 ITexPic *pTex = 0;
1718
1719 pTex = m_pSystem->GetIRenderer()->EF_LoadTexture( szFilename, FT_NORESIZE | FT_NOMIPS, 0, eTT_Base);
1720
1721 if (!pTex || (pTex && (pTex->GetFlags() & FT_NOTFOUND)))
1722 {
1723 pTex = m_pSystem->GetIRenderer()->EF_LoadTexture("console/loadscreen_default", FT_NORESIZE | FT_NOMIPS, 0, eTT_Base);
1724 }
1725
1726 if (pTex)
1727 {
1728 m_nLoadingBackTexID = pTex->GetTextureID();
1729 }
1730 else
1731 {
1732 m_nLoadingBackTexID = -1;
1733 }
1734}
1735
1736void CXConsole::AddOutputPrintSink( IOutputPrintSink *inpSink )
1737{

Callers 5

LoadLevelCSMethod · 0.80
LoadFromStreamMethod · 0.80
LoadLevelCommonMethod · 0.80

Calls 4

EF_LoadTextureMethod · 0.80
GetTextureIDMethod · 0.80
GetIRendererMethod · 0.45
GetFlagsMethod · 0.45

Tested by

no test coverage detected