Slide 5
Slide 5 text
実践例 (コード)
use sstar::{
app::{graphics::Position, SStarApp},
vulkan::PushConstant,
};
fn main() {
let mut app = SStarApp::new("Sample", 640.0, 480.0, 10);
let mut pc = PushConstant {
scl: [200.0, 200.0, 1.0, 0.0],
..Default::default()
};
while app.update() {
pc.rot[0] += 0.01;
app.draw(pc.clone(), Position::Center);
app.flush();
}
app.terminate();
}
5