Skip to content

ABI

SpriteDicing has a C/C++ ABI wrapper compiled into native library for embedding the tool into game engines, frameworks or languages.

rust
extern "C" fn dice(sprites: CSlice<CSourceSprite>, prefs: CPrefs) -> CResult

WARNING

Memory governed by the slices returned by the function is expected to be reclaimed by the caller.

For the full API see the sources:

Download latest pre-compiled binaries:

To build from source, clone the repository and run cargo build under "crates" directory. You may also find this build script useful for cross-compilation.

TIP

For the ABI usage example, see the C# bindings authored for the Unity integration.