4 releases
0.1.3 | May 18, 2023 |
---|---|
0.1.2 | May 17, 2023 |
0.1.1 | May 16, 2023 |
0.1.0 | May 16, 2023 |
#35 in #glium
14KB
282 lines
Jarylo
Jarilo
(Yarilo) is a library made specifically to simplify working with 'glium'.
The library was created specifically for Dryad
A simple example of a program on Jarylo
:
use jarylo::color::*;
fn main() {
jarylo::App::new()
.set_title("simple".to_string())
.set_update(||{})
.set_render(|painter| {
painter.set_color(BLACK);
painter.clear();
painter.set_color(WHITE);
painter.draw_rect(0.0, 0.0, 0.5, 0.5);
}).build().run();
}
jarylo::App::new()
- creating an application.
set_title
- definition of the application header.
set_update
- definition of the main calculation cycle.
set_render
- definition of the main rendering cycle.
build
is the method of assembling all configured components.
run
is the method of launching the application.
Dependencies
~7–19MB
~269K SLoC