use renderkit::raylib::window::Window;
pub fn main() {
unsafe {
env_logger::init();
let window = Window::new(
cgmath::Vector2::new(800, 450),
"renderkit example - basic window",
);
loop {
if renderkit::raylib::ffi::WindowShouldClose() {
break;
}
renderkit::raylib::ffi::BeginDrawing();
renderkit::raylib::ffi::ClearBackground(renderkit::raylib::palette::RAYWHITE.into());
renderkit::raylib::ffi::DrawText(
cstr::cstr!("Congrats! You created your first window!").as_ptr(),
190,
200,
20,
renderkit::raylib::palette::BLACK.into(),
);
renderkit::raylib::ffi::EndDrawing();
}
}
}