Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rust docs #42

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ozz-animation-rs"
version = "0.7.1"
version = "0.7.2"
authors = ["SlimeYummy <zzzcccnnn@outlook.com>"]
edition = "2021"
rust-version = "1.75"
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ Ozz-animation-rs keeps the same API styles with original ozz-animation library.
Here is a very sample example:

```rust
use glam::Mat4;
use ozz_animation_rs::*;
use ozz_animation_rs::math::*;
use std::rc::Rc;

// Load resources
let skeleton = Rc::new(Skeleton::from_file("./resource/skeleton.ozz").unwrap());
let animation1 = Rc::new(Animation::from_file("./resource/animation1.ozz").unwrap());
Expand Down
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
//! runtime, but rewrite the full runtime library in rust. So it can be used in network game scenarios, such as
//! lock-step networking synchronize.
//!
//! ```
//! ```no_run
//! use glam::Mat4;
//! use ozz_animation_rs::*;
//! use ozz_animation_rs::math::*;
//! use std::rc::Rc;
//!
//! // Load resources
//! let skeleton = Rc::new(Skeleton::from_file("./resource/skeleton.ozz").unwrap());
//! let animation1 = Rc::new(Animation::from_file("./resource/animation1.ozz").unwrap());
Expand Down
Loading