Skip to content

Commit

Permalink
fix: get fb (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoncoder047 authored Nov 16, 2024
1 parent 189da7e commit 8e1d89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/kaplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ const kaplay = <
flush();
fb.unbind();
},
get fb() { return fb; }
};
}

Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4717,6 +4717,7 @@ export type Canvas = {
clear(): void;
draw(action: () => void): void;
free(): void;
readonly fb: FrameBuffer
};

export interface Vertex {
Expand Down

0 comments on commit 8e1d89f

Please sign in to comment.