在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:PistonDevelopers/piston开源软件地址:https://github.com/PistonDevelopers/piston开源编程语言:Rust 99.9%开源软件介绍:A modular game engine written in Rust Maintainers of Piston core libraries: @bvssvni Dive into the world of Piston
Start new project with PistonYou should know how to build "hello world" with Rust, see http://www.rust-lang.org/. Drawing a red rectangleAdd piston_window to your Cargo.toml, for example: [dependencies]
piston_window = "*" In "src/main.rs", type the following code: extern crate piston_window;
use piston_window::*;
fn main() {
let mut window: PistonWindow =
WindowSettings::new("Hello Piston!", [640, 480])
.exit_on_esc(true).build().unwrap();
while let Some(event) = window.next() {
window.draw_2d(&event, |context, graphics, _device| {
clear([1.0; 4], graphics);
rectangle([1.0, 0.0, 0.0, 1.0], // red
[0.0, 0.0, 100.0, 100.0],
context.transform,
graphics);
});
}
} Use GoalsThe Piston project is a large collaboration among many developers. There are libraries for 2D, 3D, event programming, AI, image processing etc. By sharing the maintenance, we get more time to build new stuff. Piston is as much a community project as it is a collection of libraries. Writing and maintaining code is expensive, and by sharing this cost we reach our goals faster. We believe that seeking personal goals and ambitions, while helping each other, results in higher quality.
In addition, we do research or plan to in the following areas:
Dependency graph |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论