sdl2-sys 0.26.0

Raw SDL2 bindings for Rust, used internally rust-sdl2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![doc(hidden)]

use libc::{uint8_t, c_char, c_int};

#[derive(Copy, Clone)]
#[repr(C)]
pub struct SDL_version {
    pub major: uint8_t,
    pub minor: uint8_t,
    pub patch: uint8_t,
}
extern "C" {
    pub fn SDL_GetVersion(ver: *mut SDL_version);
    pub fn SDL_GetRevision() -> *const c_char;
    pub fn SDL_GetRevisionNumber() -> c_int;
}