mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 12:07:27 +00:00
Don't convert flags type to enum for WindowState (#43)
This commit is contained in:
parent
af773c79e2
commit
ffe8091bc4
@ -46,7 +46,7 @@ def fix_pointer(name: str, t: str):
|
||||
|
||||
|
||||
def fix_enums(arg_name, arg_type, func_name):
|
||||
# Hacking specifc enums in here
|
||||
# Hacking specific enums in here
|
||||
# Raylib doesn't use the enums but rather the resulting ints
|
||||
if arg_type == "int" or arg_type == "unsigned int":
|
||||
if arg_name == "key":
|
||||
@ -60,8 +60,6 @@ def fix_enums(arg_name, arg_type, func_name):
|
||||
arg_type = "CameraMode"
|
||||
elif arg_name == "gesture":
|
||||
arg_type = "Gestures"
|
||||
elif arg_name == "flags" and func_name in ["SetWindowState", "ClearWindowState", "SetConfigFlags"]:
|
||||
arg_type = "ConfigFlags"
|
||||
return arg_type
|
||||
|
||||
|
||||
|
@ -778,8 +778,8 @@ pub extern fn IsWindowMaximized() bool;
|
||||
pub extern fn IsWindowFocused() bool;
|
||||
pub extern fn IsWindowResized() bool;
|
||||
pub extern fn IsWindowState(flag: c_uint) bool;
|
||||
pub extern fn SetWindowState(flags: ConfigFlags) void;
|
||||
pub extern fn ClearWindowState(flags: ConfigFlags) void;
|
||||
pub extern fn SetWindowState(flags: c_uint) void;
|
||||
pub extern fn ClearWindowState(flags: c_uint) void;
|
||||
pub extern fn ToggleFullscreen() void;
|
||||
pub extern fn MaximizeWindow() void;
|
||||
pub extern fn MinimizeWindow() void;
|
||||
@ -862,7 +862,7 @@ pub extern fn GetTime() f64;
|
||||
pub extern fn GetRandomValue(min: c_int, max: c_int) c_int;
|
||||
pub extern fn SetRandomSeed(seed: c_uint) void;
|
||||
pub extern fn TakeScreenshot(fileName: [*c]const u8) void;
|
||||
pub extern fn SetConfigFlags(flags: ConfigFlags) void;
|
||||
pub extern fn SetConfigFlags(flags: c_uint) void;
|
||||
pub extern fn TraceLog(logLevel: c_int, text: [*c]const u8, ...) void;
|
||||
pub extern fn SetTraceLogLevel(logLevel: c_int) void;
|
||||
pub extern fn MemAlloc(size: c_uint) *anyopaque;
|
||||
|
Loading…
x
Reference in New Issue
Block a user