Skip to content

Commit

Permalink
Update the window function binding
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Dec 23, 2024
1 parent c1e1b4e commit 48f1bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alan_compiler/src/std/root.ln
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ type Rs = Env{"ALAN_OUTPUT_LANG"} == "rs";
type Js = Env{"ALAN_OUTPUT_LANG"} == "js";

// Importing the Root Scope backing implementation and supporting 3rd party libraries
type{Rs} RootBacking = Rust{"alan_std" @ "https://github.com/alantech/alan.git"};
type{Rs} RootBacking = Rust{"alan_std" @ "https://github.com/alantech/alan.git#initial-context-fn"};
type{Js} RootBacking = Node{"alan_std" @ "https://github.com/alantech/alan.git"};

// Defining derived types
Expand Down Expand Up @@ -5378,7 +5378,7 @@ fn map{G, G2}(gb: GBuffer, f: (G, gu32) -> G2) {
type{Rs} Window = Binds{"alan_std::AlanWindowContext" <- RootBacking};
type{Rs} Frame = Binds{"alan_std::AlanWindowFrame" <- RootBacking};

fn{Rs} window "alan_std::run_window" <- RootBacking :: (Mut{(Mut{Window}) -> u32[]}, (Frame) -> GPGPU[]) -> ()!;
fn{Rs} window "alan_std::run_window" <- RootBacking :: (Mut{(Mut{Window}) -> ()}, Mut{(Mut{Window}) -> u32[]}, (Frame) -> GPGPU[]) -> ()!;
fn{Rs} width Method{"width"} :: Window -> u32;
fn{Rs} height Method{"height"} :: Window -> u32;
fn{Rs} bufferWidth Method{"buffer_width"} :: Window -> u32;
Expand Down

0 comments on commit 48f1bd7

Please sign in to comment.