samcrow / rust-xplm

Rust interfaces to the X-Plane plugin SDK
Apache License 2.0
39 stars 15 forks source link

More Examples #4

Open maarek opened 4 years ago

maarek commented 4 years ago

Could you create some more examples of how the various components are used. I am new to rust and have been having difficulties working with the static callbacks (menu items) and things not showing up as expected (windows).

samcrow commented 4 years ago

Unfortunately, I can't make good examples for most of the SDK because I haven't found a good design for the APIs that is safe, ergonomic, and functional. The menu and graphics APIs are especially incomplete.

If you learn how to use the low-level C bindings, you can make a better design for safe Rust APIs on top of them.