add feature
- add exmaple cmake configure command in README. - change BMap::Save interface to support compression and texture save opt switches. - update PyBMap due to the change of BMap.
This commit is contained in:
@ -137,10 +137,12 @@ bool BMFile_Create(
|
||||
bool BMFile_Save(
|
||||
BMPARAM_IN(BMap::BMFile*, map_file),
|
||||
BMPARAM_IN(LibCmo::CKSTRING, file_name),
|
||||
BMPARAM_IN(LibCmo::CK2::CK_TEXTURE_SAVEOPTIONS, texture_save_opt),
|
||||
BMPARAM_IN(bool, use_compress),
|
||||
BMPARAM_IN(LibCmo::CKINT, compreess_level)) {
|
||||
if (!CheckBMFile(map_file)) return false;
|
||||
|
||||
return map_file->Save(file_name, compreess_level);
|
||||
return map_file->Save(file_name, texture_save_opt, use_compress, compreess_level);
|
||||
}
|
||||
|
||||
bool BMFile_Free(BMPARAM_IN(BMap::BMFile*, map_file)) {
|
||||
|
Reference in New Issue
Block a user