Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Laguna1989 committed Oct 10, 2023
1 parent dfa5c48 commit 8e95cdf
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
This is a c++17 library to parse `*.aseprite` files. Please check out and
support [this awesome pixelart program](https://www.aseprite.org/)!

# Limitations

* No support for grayscale or indexed image types. Only RGBA files are supported.
* Grayscale and indexed files will not parse.
* Only "Normal" Blend Mode is supported.
* Blend mode is effectively ignored.
* No support of user data properties.
* Files with user data properties will not prase.

# Dependencies

* zlib (for cel chunk decompression)
* catch2 (for testing only)

All dependencies are obtained via cmake.

# How to use this library

## CMake

CMake integration into your own project is done via `FetchContent`.

include in your `CMakeLists.txt`

```cmake
include(FetchContent)
message(STATUS "Fetching aselib")
FetchContent_Declare(
aselib
GIT_REPOSITORY https://github.com/Laguna1989/aseprite_lib.git
GIT_TAG master
)
set(ASE_LIB_ENABLE_UNIT_TESTS OFF)
FetchContent_MakeAvailable(aselib)
## .... Adding your own library and executable projects
FetchContent_GetProperties(aselib)
target_link_libraries(MyTarget aselib)
```

## Build and run tests locally (on linux)

```shell
git clone https://github.com/Laguna1989/aselib.git
cd aselib
mkdir build
cd build
cmake ..
cmake --build .

cd test/unit_test
./aselib_test
```

0 comments on commit 8e95cdf

Please sign in to comment.