mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Add examples/breakout
This commit is contained in:
parent
97fff2e84d
commit
a111f510a4
27 changed files with 5036 additions and 0 deletions
17
examples/breakout/platform/src/lib.rs
Normal file
17
examples/breakout/platform/src/lib.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
mod focus;
|
||||
mod graphics;
|
||||
mod gui;
|
||||
mod roc;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_main() -> i32 {
|
||||
let state = roc::State {
|
||||
width: 1900.0,
|
||||
height: 1000.0,
|
||||
};
|
||||
|
||||
gui::run_event_loop("test title", state).expect("Error running event loop");
|
||||
|
||||
// Exit code
|
||||
0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue