support gif res

This commit is contained in:
xianjimli 2018-11-27 09:37:44 +08:00
parent 6420ae405d
commit fe8e31c93a

View File

@ -49,6 +49,8 @@ int main(int argc, char** argv) {
output_res_c_source(out_filename, ASSET_TYPE_IMAGE, ASSET_TYPE_IMAGE_PNG, input_buff, size);
} else if (end_with(in_filename, ".jpg")) {
output_res_c_source(out_filename, ASSET_TYPE_IMAGE, ASSET_TYPE_IMAGE_JPG, input_buff, size);
} else if (end_with(in_filename, ".gif")) {
output_res_c_source(out_filename, ASSET_TYPE_IMAGE, ASSET_TYPE_IMAGE_GIF, input_buff, size);
} else {
output_res_c_source(out_filename, ASSET_TYPE_DATA, 0, input_buff, size);
}