Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmyy-color/bin/myy_bmp2raw /
Go to file| #!/usr/bin/env ruby | |
| require "myy-color" | |
| if ARGV.length < 4 | |
| puts "convert bmp_file input_color_encoding raw_file output_color_encoding" | |
| puts "Example : convert file.bmp rgba8888 text.raw rgba5551" | |
| exit | |
| end | |
| bmp_file, input_color_encoding, raw_file, output_color_encoding, = ARGV | |
| MyyColor::OpenGL.convert_bmp(bmp_filename: bmp_file, | |
| raw_filename: raw_file, | |
| from: input_color_encoding, | |
| to: output_color_encoding) | |
| puts "Raw converted." |