Skip to content

Inochi2D/inochi2d-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inochi2D Rust Bindings

This repository contains the (preliminary) Rust bindings for Inochi2D using the Inochi2D C SDK.

NOTE: The bindings pull in a large chunk of the D runtime, including the Garbage Collector.

Building

To build these bindings, you need ldc, dub, and git in addition to the normal rust toolchain.

The build.rs will attempt to clone Inochi2D and Inochi2D-c into the target directory and build them from source on first build.

You should only need to build the crate as you would normally.

$ cargo build

Examples

To build the examples, make sure you have the submodules checked out to ensure the example Inochi2D puppets are where the examples expect them to be.

NOTE: You need git lfs in order to properly clone the example models

You can run the main OpenGL example with:

$ cargo run --example midori

midori example

License

These bindings are licensed under the BSD-2-Clause license, the full text of which can be found in the LICENSE file.

Releases

No releases published

Languages