MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isAlphaFormat

Function isAlphaFormat

Engine/source/gfx/bitmap/imageUtils.cpp:247–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 }
246
247 bool isAlphaFormat(const GFXFormat format)
248 {
249 switch (format)
250 {
251 case GFXFormatA8:
252 case GFXFormatA4L4:
253 case GFXFormatA8L8:
254 case GFXFormatR5G5B5A1:
255 case GFXFormatR8G8B8A8:
256 case GFXFormatB8G8R8A8:
257 case GFXFormatR16G16B16A16F:
258 case GFXFormatR32G32B32A32F:
259 case GFXFormatR10G10B10A2:
260 //case GFXFormatBC1://todo BC1 can store alpha
261 case GFXFormatBC2:
262 case GFXFormatBC3:
263 return true;
264 default:
265 return false;
266 }
267 }
268
269 bool isSRGBFormat(const GFXFormat format)
270 {

Callers 1

readHeaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected