Simple Graphic Library in Rust.
use srgl::CanvasBuilder;
fn main() -> Result<(), srgl::Error> {
CanvasBuilder::new()
.with_size(400, 300)
.build().run()
}
SRGL is designed to be as simple and easy to use. You can open an empty window with just few lines of code!
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 are available in /examples
.