Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions c/raylib_bindings.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,3 +523,13 @@ lean_obj_res drawPixelV(lean_obj_arg position_arg, lean_obj_arg color_arg) {
DrawPixelV(position, color);
return IO_UNIT;
}

lean_obj_res setConfigFlags(uint64_t flags) {
SetConfigFlags(flags);
return IO_UNIT;
}

lean_obj_res setWindowState(uint64_t flags) {
SetWindowState(flags);
return IO_UNIT;
}
12 changes: 12 additions & 0 deletions lean/Raylean/Core.lean
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,15 @@ opaque drawTexturePro : (texture : @& Texture2D) -> (source : @& Rectangle) -> (

@[extern "drawPixelV"]
opaque drawPixelV : (position : @& Vector2) -> (color : @& Color) -> IO Unit

@[extern "setConfigFlags"]
opaque setConfigFlags : (flags : UInt64) -> IO Unit

@[extern "setWindowState"]
opaque setWindowState : (flags : UInt64) -> IO Unit

namespace Flags

def vsyncHint : UInt64 := 0x00000040

end Flags
Loading