diff --git a/lib/generate_functions.py b/lib/generate_functions.py index 6ec5eee..51960cb 100644 --- a/lib/generate_functions.py +++ b/lib/generate_functions.py @@ -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 = [] diff --git a/lib/raylib-zig.zig b/lib/raylib-zig.zig index ec4ab3c..ecbdaa9 100755 --- a/lib/raylib-zig.zig +++ b/lib/raylib-zig.zig @@ -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); }