MCPcopy Create free account
hub / github.com/ddnet/ddnet / IsImageFormatRgba

Method IsImageFormatRgba

src/engine/client/graphics_threaded.cpp:635–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635bool CGraphics_Threaded::IsImageFormatRgba(const char *pContextName, const CImageInfo &Image)
636{
637 if(Image.m_Format != CImageInfo::FORMAT_RGBA)
638 {
639 SWarning NewWarning;
640 char aContextNameQuoted[128];
641 str_format(aContextNameQuoted, sizeof(aContextNameQuoted), "\"%s\"", pContextName);
642 str_format(NewWarning.m_aWarningMsg, sizeof(NewWarning.m_aWarningMsg),
643 Localize("The format of texture %s is not RGBA which will cause visual bugs."), aContextNameQuoted);
644 AddWarning(NewWarning);
645 return false;
646 }
647 return true;
648}
649
650void CGraphics_Threaded::KickCommandBuffer()
651{

Callers 9

LoadGameSkinMethod · 0.80
LoadEmoticonsSkinMethod · 0.80
LoadParticlesSkinMethod · 0.80
LoadHudSkinMethod · 0.80
LoadExtrasSkinMethod · 0.80
LoadSkinDataMethod · 0.80
LoadSkinPartMethod · 0.80
LoadXmasHatMethod · 0.80
LoadBotDecorationMethod · 0.80

Calls 2

str_formatFunction · 0.85
LocalizeFunction · 0.85

Tested by

no test coverage detected