Pacheco95 / bun-sdl2-binding

Bun SDL2 Language Binding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bun-sdl2-binding

This is an attempt to create a SDL2 binding for Bun, and it's my first time using FFI, so please, don't judge me!

Hello World Triangle

See this example in index.ts


Requirements

  1. Install Bun
  2. Install the SDL2 development library
sudo apt install libsdl2-dev

Setup

To install dependencies:

git clone git@github.com:Pacheco95/bun-sdl2-binding.git
cd bun-sdl2-binding
bun install

To run the example above:

bun run index.ts

To run tests

bun test --coverage

This project was created using bun init in bun v1.0.7. Bun is a fast all-in-one JavaScript runtime.

About

Bun SDL2 Language Binding

License:MIT License


Languages

Language:TypeScript 100.0%