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

Function FormatNameGL

engine/PoseidonGL33/TextureBankGL33_Core.cpp:15–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13extern int MipmapSizeGL33(PacFormat format, int w, int h);
14
15static const char* FormatNameGL(PacFormat format)
16{
17 switch (format)
18 {
19 case PacP8:
20 return "PacP8";
21 case PacAI88:
22 return "PacAI88";
23 case PacRGB565:
24 return "PacRGB565";
25 case PacARGB1555:
26 return "PacARGB1555";
27 case PacARGB4444:
28 return "PacARGB4444";
29 case PacARGB8888:
30 return "PacARGB8888";
31 case PacDXT1:
32 return "PacDXT1";
33 case PacDXT3:
34 return "PacDXT3";
35 case PacDXT5:
36 return "PacDXT5";
37 default:
38 return "???";
39 }
40}
41
42static void SurfaceName(char* buf, int bufSize, const SurfaceInfoGL33& surface)
43{

Callers 1

SurfaceNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected