An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# CppTexturePacker ![build status](https://api.travis-ci.com/wo1fsea/CppTexturePacker.svg?branch=master)
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
```