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

Function ToImageCompressionType

engine/gui/src/gui_script.cpp:2118–2124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2116 }
2117
2118 static dmImage::CompressionType ToImageCompressionType(const char* type_str)
2119 {
2120 if (strcmp(type_str, "astc") == 0) {
2121 return dmImage::COMPRESSION_TYPE_ASTC;
2122 }
2123 return dmImage::COMPRESSION_TYPE_NONE;
2124 }
2125
2126 /*# create new texture
2127 * Dynamically create a new texture.

Callers 2

LuaNewTextureFunction · 0.85
LuaSetTextureDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected