fermium 22605.0.0

An opinionated crate of SDL2 bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(windows)]
use std::io::Write;

#[cfg(windows)]
const DLL_BYTES: &[u8] = include_bytes!("../../SDL2-2.26.5-devel/SDL2.dll");

#[cfg(windows)]
fn main() -> std::io::Result<()> {
  let mut f = std::fs::File::create("SDL2.dll")?;
  f.write_all(DLL_BYTES)?;
  println!("Successfully wrote out SDL2.dll (x86_64)");
  Ok(())
}

#[cfg(not(windows))]
fn main() {
  println!("You're not on Windows, so I'm just gonna print this message.");
}