Update some types

This commit is contained in:
Not-Nik 2023-07-11 19:18:53 +02:00
parent 052ab7b75b
commit 02a3dbba61
No known key found for this signature in database
GPG Key ID: 08BB71E672DB3BFD
2 changed files with 18 additions and 18 deletions

View File

@ -158,11 +158,11 @@ pub const Image = extern struct {
return rl.loadImage(fileName); return rl.loadImage(fileName);
} }
pub fn initRaw(fileName: *const []u8, width: c_int, height: c_int, format: PixelFormat, headerSize: c_int) Image { pub fn initRaw(fileName: *const []u8, width: i32, height: i32, format: PixelFormat, headerSize: i32) Image {
return rl.loadImageRaw(fileName, width, height, format, headerSize); return rl.loadImageRaw(fileName, width, height, format, headerSize);
} }
pub fn initText(text: *const []u8, fontSize: c_int, color: Color) Image { pub fn initText(text: *const []u8, fontSize: i32, color: Color) Image {
return rl.imageText(text, fontSize, color); return rl.imageText(text, fontSize, color);
} }
@ -178,31 +178,31 @@ pub const Image = extern struct {
return rl.imageFromImage(image, rec); return rl.imageFromImage(image, rec);
} }
pub fn genColor(width: c_int, height: c_int, color: Color) Image { pub fn genColor(width: i32, height: i32, color: Color) Image {
return rl.genImageColor(width, height, color); return rl.genImageColor(width, height, color);
} }
pub fn genGradientV(width: c_int, height: c_int, top: Color, bottom: Color) Image { pub fn genGradientV(width: i32, height: i32, top: Color, bottom: Color) Image {
return rl.genImageGradientV(width, height, top, bottom); return rl.genImageGradientV(width, height, top, bottom);
} }
pub fn genGradientH(width: c_int, height: c_int, left: Color, right: Color) Image { pub fn genGradientH(width: i32, height: i32, left: Color, right: Color) Image {
return rl.genImageGradientH(width, height, left, right); return rl.genImageGradientH(width, height, left, right);
} }
pub fn genGradientRadial(width: c_int, height: c_int, density: f32, inner: Color, outer: Color) Image { pub fn genGradientRadial(width: i32, height: i32, density: f32, inner: Color, outer: Color) Image {
return rl.genImageGradientRadial(width, height, density, inner, outer); return rl.genImageGradientRadial(width, height, density, inner, outer);
} }
pub fn genChecked(width: c_int, height: c_int, checksX: c_int, checksY: c_int, col1: Color, col2: Color) Image { pub fn genChecked(width: i32, height: i32, checksX: i32, checksY: i32, col1: Color, col2: Color) Image {
return rl.genImageChecked(width, height, checksX, checksY, col1, col2); return rl.genImageChecked(width, height, checksX, checksY, col1, col2);
} }
pub fn genWhiteNoise(width: c_int, height: c_int, factor: f32) Image { pub fn genWhiteNoise(width: i32, height: i32, factor: f32) Image {
return rl.genImageWhiteNoise(width, height, factor); return rl.genImageWhiteNoise(width, height, factor);
} }
pub fn genCellular(width: c_int, height: c_int, tileSize: c_int) Image { pub fn genCellular(width: i32, height: i32, tileSize: i32) Image {
return rl.genImageCellular(width, height, tileSize); return rl.genImageCellular(width, height, tileSize);
} }

View File

@ -158,11 +158,11 @@ pub const Image = extern struct {
return rl.loadImage(fileName); return rl.loadImage(fileName);
} }
pub fn initRaw(fileName: *const []u8, width: c_int, height: c_int, format: PixelFormat, headerSize: c_int) Image { pub fn initRaw(fileName: *const []u8, width: i32, height: i32, format: PixelFormat, headerSize: i32) Image {
return rl.loadImageRaw(fileName, width, height, format, headerSize); return rl.loadImageRaw(fileName, width, height, format, headerSize);
} }
pub fn initText(text: *const []u8, fontSize: c_int, color: Color) Image { pub fn initText(text: *const []u8, fontSize: i32, color: Color) Image {
return rl.imageText(text, fontSize, color); return rl.imageText(text, fontSize, color);
} }
@ -178,31 +178,31 @@ pub const Image = extern struct {
return rl.imageFromImage(image, rec); return rl.imageFromImage(image, rec);
} }
pub fn genColor(width: c_int, height: c_int, color: Color) Image { pub fn genColor(width: i32, height: i32, color: Color) Image {
return rl.genImageColor(width, height, color); return rl.genImageColor(width, height, color);
} }
pub fn genGradientV(width: c_int, height: c_int, top: Color, bottom: Color) Image { pub fn genGradientV(width: i32, height: i32, top: Color, bottom: Color) Image {
return rl.genImageGradientV(width, height, top, bottom); return rl.genImageGradientV(width, height, top, bottom);
} }
pub fn genGradientH(width: c_int, height: c_int, left: Color, right: Color) Image { pub fn genGradientH(width: i32, height: i32, left: Color, right: Color) Image {
return rl.genImageGradientH(width, height, left, right); return rl.genImageGradientH(width, height, left, right);
} }
pub fn genGradientRadial(width: c_int, height: c_int, density: f32, inner: Color, outer: Color) Image { pub fn genGradientRadial(width: i32, height: i32, density: f32, inner: Color, outer: Color) Image {
return rl.genImageGradientRadial(width, height, density, inner, outer); return rl.genImageGradientRadial(width, height, density, inner, outer);
} }
pub fn genChecked(width: c_int, height: c_int, checksX: c_int, checksY: c_int, col1: Color, col2: Color) Image { pub fn genChecked(width: i32, height: i32, checksX: i32, checksY: i32, col1: Color, col2: Color) Image {
return rl.genImageChecked(width, height, checksX, checksY, col1, col2); return rl.genImageChecked(width, height, checksX, checksY, col1, col2);
} }
pub fn genWhiteNoise(width: c_int, height: c_int, factor: f32) Image { pub fn genWhiteNoise(width: i32, height: i32, factor: f32) Image {
return rl.genImageWhiteNoise(width, height, factor); return rl.genImageWhiteNoise(width, height, factor);
} }
pub fn genCellular(width: c_int, height: c_int, tileSize: c_int) Image { pub fn genCellular(width: i32, height: i32, tileSize: i32) Image {
return rl.genImageCellular(width, height, tileSize); return rl.genImageCellular(width, height, tileSize);
} }