oxygen_quark_derive

Crates.iooxygen_quark_derive
lib.rsoxygen_quark_derive
version0.0.2
sourcesrc
created_at2019-01-04 22:53:48.396429
updated_at2019-01-04 22:53:48.396429
descriptionOxygen Quark Derive is a library for deriving traits implemented in Oxygen Quark.
homepagehttp://oxygen.avekvist.com/quark/
repositoryhttps://github.com/Avekvist/oxygen-engine
max_upload_size
id105524
size11,875
Hampus Avekvist (seffradev)

documentation

README

Oxygen Quark Derive

Powered by Rust. A macro library for easy implementation of matrices and vectors, primarily developed for the Oxygen Engine. Developed by Hampus Avekvist.

Example

[dependencies]
oxygen_quark_derive = "*"
use oxygen_quark_derive::Matrix;

#[derive(Matrix)]
struct TestMatrix {
  // Note, it requires that you separate the width
  // and the height like this. It won't parse the
  // matrix correctly otherwise. Height first,
  // then width.
  data: [f32; 2 * 2],
}

fn main() {...}

How to contribute

Have Rust setup and clone the repository. Start coding and have fun! I would recommend that you check out the list of issues to see what you could fix, and if you don't find anything interesting there, just go and check out the projects instead.

Otherwise, just issue your own bugs and features with the issue tracker. I'll be sure to check them out and tag them accordingly!

Implemented

  • #[derive(Matrix)] (although, it lacks some correctness here and there, help to fix this is appreciated)

To be implemented

  • #[derive(Vector)]
Commit count: 0

cargo fmt