'How to set rust piston window spawn position?
How to set start coordinats for piston window spawn?
I can move it after with .set_position() that is not exactly what i want.
fn main() {
...
let mut window: GlutinWindow = WindowSettings::new(
"spinning-square",
[0, 0])
.graphics_api(opengl)
.exit_on_esc(true)
.build()
.unwrap();
...
window.set_position((settings.window_position.0,
settings.window_position.1));
window.set_size([size.0, size.1]);
Also, maybe you know how to spawn it with no mouse focus switch from IDE, for debugging.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
