MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetMipmapData

Method GetMipmapData

engine/Poseidon/Graphics/Rendering/Font/Pactext.cpp:1893–1910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1891}
1892
1893bool TextureSourcePac::GetMipmapData(void* mem, const PacLevelMem& mip, int level) const
1894{
1895 int ret;
1896 QIFStream in;
1897 GFileServer->Open(in, _name);
1898
1899 mip.SeekLevel(in);
1900 if (_isPaa)
1901 {
1902 ret = mip.LoadPaa(in, mem, &_pal);
1903 }
1904 else
1905 {
1906 ret = mip.LoadPac(in, mem, &_pal);
1907 }
1908
1909 return ret == 0;
1910}
1911
1912ITextureSource* CreateTextureSourcePac(const char* name, PacLevelMem* mips, int maxMips)
1913{

Callers

nothing calls this directly

Calls 4

SeekLevelMethod · 0.80
LoadPaaMethod · 0.80
LoadPacMethod · 0.80
OpenMethod · 0.45

Tested by

no test coverage detected