MCPcopy Create free account
hub / github.com/defold/defold / IsFormatRGB

Function IsFormatRGB

engine/graphics/src/graphics.cpp:928–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926 }
927
928 static bool IsFormatRGB(dmGraphics::TextureFormat format)
929 {
930 switch(format)
931 {
932 case dmGraphics::TEXTURE_FORMAT_RGB:
933 case dmGraphics::TEXTURE_FORMAT_RGB_BC1:
934 case dmGraphics::TEXTURE_FORMAT_RGB_ETC1:
935 case dmGraphics::TEXTURE_FORMAT_RGB_PVRTC_4BPPV1:
936 case dmGraphics::TEXTURE_FORMAT_RGB_16BPP:
937 return true;
938 default:
939 return false;
940 }
941 }
942
943 static bool IsFormatRG(dmGraphics::TextureFormat format)
944 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected