Some more cleanup

This commit is contained in:
Not-Nik 2022-01-08 20:58:22 +01:00
parent 5e275e93df
commit fe637bb128
No known key found for this signature in database
GPG Key ID: 08BB71E672DB3BFD
2 changed files with 2 additions and 9 deletions

View File

@ -3,7 +3,7 @@ import re
"""
Automatic utility for generating raylib function headers. Simply put
raylib.h in the working directory of this script and execute.
Tested with raylib version 3.0.0
Tested with raylib version 3.7.0
"""
C_TO_ZIG = {
@ -17,7 +17,7 @@ C_TO_ZIG = {
"unsigned int": "c_uint",
}
# Some c types have a different size on different systems
# Some c types have a different sizes on different systems
# and zig knows that so we tell it to get the system specific size for us
def c_to_zig_type(c: str) -> str:
c = c.replace("const ", "")
@ -58,9 +58,6 @@ def fix_enums(arg_name, arg_type, func_name):
return arg_type
small_structs = ["Vector2", "Vector3", "Vector4", "Quaternion", "Color", "Rectangle", "Shader"]
def parse_header(header_name: str, output_file: str, prefix: str):
header = open(header_name, mode="r")
zig_functions = []

View File

@ -152,10 +152,6 @@ pub const Image = extern struct {
return rl.GenImageCellular(width, height, tileSize);
}
pub fn GetData(self: Image) [*c]Color {
return GetImageData(self);
}
pub fn UseAsWindowIcon(self: Image) void {
rl.SetWindowIcon(self);
}