Module rusty_spine::extension

source ·
Expand description

Allow overriding the Spine C Runtime extension functions.

Because this library is primarily a wrapper around the official C runtime, it tries to mimic the usage of that runtime as closely as possible. One awkward outcome of this goal is that the C runtime expects you to implement a few functions directly. This module allows you to set those callbacks which have been wrapped in Rust.

The callbacks from C are:

  • void _spAtlasPage_createTexture (spAtlasPage* self, const char* path);
  • void _spAtlasPage_disposeTexture (spAtlasPage* self);
  • char* _spUtil_readFile (const char* path, int* length);

They can be set with the functions found on this page.

You can read more about these functions on the spine-c Runtime Docs.

Functions

Set _spAtlasPage_createTexture
Set _spAtlasPage_disposeTexture
Set _spUtil_readFile