Skip to content

Commit

Permalink
WIP build: wasm-pack support attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
sypwex committed Jun 3, 2024
1 parent 08c172c commit e54b989
Show file tree
Hide file tree
Showing 36 changed files with 3,064 additions and 3,042 deletions.
5,071 changes: 2,542 additions & 2,529 deletions sdl2-sys/sdl_bindings.rs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sdl2-sys/sdl_gfx_framerate_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pub const FPS_UPPER_LIMIT: u32 = 200;
pub const FPS_LOWER_LIMIT: u32 = 1;
pub const FPS_DEFAULT: u32 = 30;
pub type __uint32_t = libc::c_uint;
pub type __uint32_t = std::os::raw::c_uint;
pub type Uint32 = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down Expand Up @@ -81,13 +81,13 @@ extern "C" {
pub fn SDL_initFramerate(manager: *mut FPSmanager);
}
extern "C" {
pub fn SDL_setFramerate(manager: *mut FPSmanager, rate: Uint32) -> libc::c_int;
pub fn SDL_setFramerate(manager: *mut FPSmanager, rate: Uint32) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_getFramerate(manager: *mut FPSmanager) -> libc::c_int;
pub fn SDL_getFramerate(manager: *mut FPSmanager) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_getFramecount(manager: *mut FPSmanager) -> libc::c_int;
pub fn SDL_getFramecount(manager: *mut FPSmanager) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_framerateDelay(manager: *mut FPSmanager) -> Uint32;
Expand Down
280 changes: 140 additions & 140 deletions sdl2-sys/sdl_gfx_imagefilter_bindings.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* automatically generated by rust-bindgen */

extern "C" {
pub fn SDL_imageFilterMMXdetect() -> libc::c_int;
pub fn SDL_imageFilterMMXdetect() -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMMXoff();
Expand All @@ -11,221 +11,221 @@ extern "C" {
}
extern "C" {
pub fn SDL_imageFilterAdd(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMean(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterSub(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterAbsDiff(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMult(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMultNor(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMultDivby2(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMultDivby4(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterBitAnd(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterBitOr(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterDiv(
Src1: *mut libc::c_uchar,
Src2: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Src2: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterBitNegation(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterAddByte(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
C: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
C: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterAddUint(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
C: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
C: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterAddByteToHalf(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
C: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
C: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterSubByte(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
C: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
C: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterSubUint(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
C: libc::c_uint,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
C: std::os::raw::c_uint,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterShiftRight(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
N: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
N: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterShiftRightUint(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
N: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
N: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterMultByByte(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
C: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
C: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterShiftRightAndMultByByte(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
N: libc::c_uchar,
C: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
N: std::os::raw::c_uchar,
C: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterShiftLeftByte(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
N: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
N: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterShiftLeftUint(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
N: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
N: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterShiftLeft(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
N: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
N: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterBinarizeUsingThreshold(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
T: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
T: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterClipToRange(
Src1: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
Tmin: libc::c_uchar,
Tmax: libc::c_uchar,
) -> libc::c_int;
Src1: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
Tmin: std::os::raw::c_uchar,
Tmax: std::os::raw::c_uchar,
) -> std::os::raw::c_int;
}
extern "C" {
pub fn SDL_imageFilterNormalizeLinear(
Src: *mut libc::c_uchar,
Dest: *mut libc::c_uchar,
length: libc::c_uint,
Cmin: libc::c_int,
Cmax: libc::c_int,
Nmin: libc::c_int,
Nmax: libc::c_int,
) -> libc::c_int;
Src: *mut std::os::raw::c_uchar,
Dest: *mut std::os::raw::c_uchar,
length: std::os::raw::c_uint,
Cmin: std::os::raw::c_int,
Cmax: std::os::raw::c_int,
Nmin: std::os::raw::c_int,
Nmax: std::os::raw::c_int,
) -> std::os::raw::c_int;
}
Loading

0 comments on commit e54b989

Please sign in to comment.