https://github.com/wo1fsea/cpptexturepacker
A C++ Texture Packer Toolkit
https://github.com/wo1fsea/cpptexturepacker
cocos2d-x cpp maxrectsbinpack sprite-sheet texture-pack unity3d
Last synced: about 1 year ago
JSON representation
A C++ Texture Packer Toolkit
- Host: GitHub
- URL: https://github.com/wo1fsea/cpptexturepacker
- Owner: wo1fsea
- License: mit
- Created: 2020-04-01T15:20:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T11:21:03.000Z (almost 6 years ago)
- Last Synced: 2025-03-01T00:36:46.083Z (about 1 year ago)
- Topics: cocos2d-x, cpp, maxrectsbinpack, sprite-sheet, texture-pack, unity3d
- Language: C++
- Size: 71.3 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CppTexturePacker 
A C++ Texture Packer Toolkit (The C++ version of [PyTexturePacker](https://github.com/wo1fsea/PyTexturePacker))
## Build
1. Install [vcpkg](https://github.com/microsoft/vcpkg)
```
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
PS> .\bootstrap-vcpkg.bat
Linux:~/$ ./bootstrap-vcpkg.sh
```
2. Use Vcpkg to Install Dependencies
```
PS> .\vcpkg install boost-test boost-format boost-filesystem cimg libpng libplist libjpeg-turbo pybind11 utfcpp
Linux:~/$ ./vcpkg install boost-test boost-format boost-filesystem cimg libpng libplist libjpeg-turbo pybind11 utfcpp
```
3. Use CMake to Build
```
> cd CppTexturePacker
> mkdir ./build
> cd ./build
> cmake -DCMAKE_TOOLCHAIN_FILE="[your_vcpkg_root]/scripts/buildsystems/vcpkg.cmake" ../
> cmake --build ./
> ctest
```