Commit Graph

28 Commits

Author SHA1 Message Date
8ef1c6e30a fix: fix linux build issue 2024-08-27 20:48:27 +08:00
85ff80cbf7 fix: fix Bmap build issue. add banner for Unvirt 2024-08-27 17:13:52 +08:00
e682a87d25 refactor: refactor project
- rename LIBCMO_DISABLE_COPY_MOVE -> YYCC_DEL_CLS_COPY_MOVE and LIBCMO_DEFAULT_COPY_MOVE -> YYCC_DEF_CLS_COPY_MOVE.
- fix Vector declaration generator. throw exception when operator[] face invalid index, instead of do fallback.
- rename VTAll.hpp -> VTInternal.hpp and VYUserAll -> VTAll.hpp for easy to understand.
- fix project name error in Doxygen template.
- replace all LIBCMO_OS_WIN32 to YYCC_OS == YYCC_OS_WINDOWS.
- fix some compile error (involving utf8 encoding) but not the final result.
- use correct way to include std-image library (use <> instead of "")
- finish documentation for VTUtils.hpp and VTEncoding.hpp.
2024-08-17 20:43:27 +08:00
f870d4dde3 refactor: update project
- add documentation CMake build script. re-organise document layout for future changes.
- move LIBCMO_EXPORT to BMap and rename it to BMAP_EXPORT because only BMap need to use this macro.
- fully refactor VTEncoding to make it more like Python
	- Now language name is platform independent.
	- Hide implementation detail as possible as I can.
	- Language mapping are still work in progress.
- add code gen for new added universal encoding feature to generate language name mapping in Windows and Iconv respectively.
- remove old code of CMake build script.
- update VTUtils for new requirement.
	- remove useless functions.
	- create LibCmo specific custom exception classes.
2024-08-16 22:07:23 +08:00
afa06339b2 chore: switch to CMake build system instead of native Visual Studio project 2024-08-15 22:20:51 +08:00
92346dc81e 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.
2023-12-03 22:50:36 +08:00
a70e32a306 fix issues
- revert nullptr check for BMap::MeshTrans pointer getter.
- fix pointer return error of BMap::MeshTrans
- fix type hint error and variable name error in PyBMap
- fix CKMesh flag init value error
- improve empty material slots saving. add a nullptr entry if no slots to make sure virtools can load it.
2023-12-01 23:31:09 +08:00
7c6dd463bd fix issues
- fix nullptr name assignment error on CKObject.
- remove slot check for CKTexture::GetFileName in BMap. return nullptr, not throw error when no slot to get file name.
2023-11-15 23:05:21 +08:00
d8b7ace53d expose lit mode interface in CKMesh.
- provide lit mode and wrap mode getter and setter in CKMesh.
- add lost flags setter in CKMesh.
- show lit mode and wrap mode data in Unvirt.
- add interface for lit mode in BMap, because some old Ballance map use lit mode to light objects.
- expose a raw c callback when creating bmap to allow user decide how the log output by themselves.
- change python bindings for BMap interface changes.
2023-11-15 21:47:58 +08:00
d6411fd907 fix fatal error about bmap. continue writing py bmap binding 2023-11-05 17:38:08 +08:00
fcd1fa81db rename BM3dEntity to BM3dObject in BMap. continue writing python bmao binding. fix doc 2023-11-05 10:44:11 +08:00
99383779b3 add first work of BMap binding 2023-10-31 10:49:18 +08:00
1d9bd09224 change bmap interface. update bmfile safe guard 2023-10-30 10:25:31 +08:00
b402e8db8e add transparent column fixer code and finish bmap load/save 2023-10-29 10:27:35 +08:00
d003b28b2e add material interface functions 2023-10-08 21:09:28 +08:00
2bd0c980b5 add mesh interface functions 2023-10-08 20:56:29 +08:00
0d114974ff add CKTexture interface functions 2023-10-08 15:28:00 +08:00
79516d7963 use new way to define interface funcs in BMap 2023-10-08 15:03:44 +08:00
754a281655 add LoadImage wrapper in CKTexture 2023-10-08 10:42:07 +08:00
812f32bfca update BMap code. finish CK3dEntity interface 2023-10-07 22:33:55 +08:00
b03806e3c9 update BMap.
- BMMeshConverter now use CK_ID as CKMaterial references.
- Add CKObject, CKGroup visitor.
2023-10-05 21:08:58 +08:00
9cb57adf6e update BMap design, use more safe design 2023-10-03 21:33:00 +08:00
4c8500e444 fix qualified name error in CKFileOthers. add some stupid wrapper for BMap 2023-10-02 20:54:31 +08:00
b217da8fb8 fix some issue
- remove unnecessary macro in BMap, Unvirt and IronPad.
- add mtl slots display for mesh.
- fix potential nullptr issue in CKStateChunk buffer reader.
2023-09-26 20:51:16 +08:00
0a168ac5cc fix cmake build issue. fix build type checker. rm IronPad windows header including under linux 2023-09-25 21:45:53 +08:00
a17b9deb4c write garbage
- fix PathManager nullptr assign issue
- fix Context set encoding unexpected copy issue
- write some export function for BMap.
2023-09-23 16:25:26 +08:00
94dadbfb1f write garbage for BMap dll 2023-09-23 15:55:57 +08:00
5671d7d7e6 create BMap project and copy-paste previous mesh convertion code 2023-09-21 13:47:30 +08:00