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

Function AlphaKindName

engine/Poseidon/Graphics/Textures/PAADecoder.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65const char* AlphaKindName(AlphaStats::Kind kind)
66{
67 switch (kind)
68 {
69 case AlphaStats::Opaque:
70 return "OPAQUE";
71 case AlphaStats::Cutout:
72 return "CUTOUT (alpha-test - fully-transparent holes)";
73 case AlphaStats::Blend:
74 return "BLEND (translucent - partial alpha)";
75 }
76 return "OPAQUE";
77}
78
79// Format name lookup from 2-byte magic
80static const char* fmtName(uint16_t magic)

Callers 2

setupModelInspectFunction · 0.85
setupImageInspectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected