/SRGL

Simple Rust Graphic Library

Primary LanguageRustMIT LicenseMIT

Simple Rust Graphic Library [SRGL]

License: MIT

Simple Graphic Library in Rust.

use srgl::CanvasBuilder;

fn main() -> Result<(), srgl::Error> {
    CanvasBuilder::new()
        .with_size(400, 300)
        .build().run()
}

Usage

SRGL is designed to be as simple and easy to use. You can open an empty window with just few lines of code!

Features

SRGL is in a very early stage of development and many of the features are still work in progress.

  • 2D rendering
  • anti-aliasing (wip)
  • 3D rendering (wip)
  • shading (Flat, Gouraud, Phong) (wip)
  • ray tracing
  • save img files (wip)

Examples

Examples are available in /examples.