mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
Super basic map rendering
This commit is contained in:
parent
5e539d668f
commit
49c47ac718
6 changed files with 60 additions and 22 deletions
|
|
@ -6,15 +6,15 @@ use sfml::{
|
|||
use sfml_xt::graphics::RenderWindowExt;
|
||||
|
||||
pub struct ScreenRes {
|
||||
pub w: u16,
|
||||
pub h: u16,
|
||||
pub w: i16,
|
||||
pub h: i16,
|
||||
}
|
||||
|
||||
impl ScreenRes {
|
||||
fn to_sf(&self) -> VideoMode {
|
||||
VideoMode {
|
||||
width: self.w.into(),
|
||||
height: self.h.into(),
|
||||
width: self.w as _,
|
||||
height: self.h as _,
|
||||
bits_per_pixel: 32,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue