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

Function ShowHelp

engine/tools/src/texconvert/main.cpp:283–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void ShowHelp()
284{
285#define PRINT_ARG_LIST(lst) \
286 { \
287 for(int i=0; lst[i].m_Name != 0; i++) \
288 printf(" %s\n", lst[i].m_Name); \
289 }
290 printf("Usage: texconvert <input-file> <output-file> [options]\n");
291 printf("Options:\n");
292 printf(" --premultiply-alpha : Use premultiply alpha\n");
293 printf(" --flip-x : Flip image on X axis\n");
294 printf(" --flip-y : Flip image on Y axis\n");
295 printf(" --verbose : Verbose output\n");
296 printf(" --mipmaps : Generate mipmaps\n");
297 printf(" --color-space <color-space> : Sets the color space, defaults to 'SRGB'. Supported values are:\n");
298 PRINT_ARG_LIST(g_cs_lut);
299 printf(" --compression-type <type> : Sets the compression type, defaults to 'DEFAULT'. Supported values are:\n");
300 PRINT_ARG_LIST(g_ct_lut);
301 printf(" --compression-level <level> : Sets the compression level, defaults to 'NORMAL'. Supported values are:\n");
302 PRINT_ARG_LIST(g_cl_lut);
303#undef PRINT_ARG_LIST
304}
305
306int main(int argc, char const *argv[])
307{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected