用于Rust编程语言的GLFW绑定和包装器。-Rust开发

时间:2021-05-27 18:31:22
【文件属性】:
文件名称:用于Rust编程语言的GLFW绑定和包装器。-Rust开发
文件大小:137KB
文件格式:ZIP
更新时间:2021-05-27 18:31:22
Rust Graphics glfw-rs Rust编程语言的GLFW绑定和包装。 示例extern crate glfw; 使用glfw :: {Action,Context,Key}; fn main(){le glfw-rs Rust编程语言的GLFW绑定和包装。 示例extern crate glfw; 使用glfw :: {Action,Context,Key}; fn main(){let mut glfw = glfw :: init(glfw :: FAIL_ON_ERRORS).unwrap(); let(mut window,events)= glfw.create_window(300,300,“您好,这是窗口”,glfw :: WindowMode :: Windowed).expect(“无法创建GLFW窗口。”); window.set_key_polling(true); window.make_current(); 而!window.should_close(){glfw.poll_events()
【文件预览】:
glfw-rs-master
----.gitignore(31B)
----src()
--------ffi()
--------callbacks.rs(10KB)
--------lib.rs(109KB)
----.travis.yml(1017B)
----LICENSE(11KB)
----Cargo.toml(843B)
----examples()
--------vulkan.rs(3KB)
--------clipboard.rs(2KB)
--------unbuffered_events.rs(3KB)
--------monitors.rs(2KB)
--------cursor_icon.rs(2KB)
--------defaults.rs(4KB)
--------window.rs(1KB)
--------multiwindow.rs(2KB)
--------error.rs(2KB)
--------raw_window_handle.rs(2KB)
--------window_icon.rs(2KB)
--------fullscreen.rs(4KB)
--------cursor.rs(2KB)
--------render_task.rs(2KB)
--------title.rs(2KB)
--------modes.rs(1KB)
--------events.rs(6KB)
--------icon.png(76KB)
--------version.rs(855B)
----README.md(4KB)
----AUTHORS(1KB)

网友评论