Skip to content

victor-rene/ffi-sdl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffi-SDL2

I created this project to work more easily with the SDL2 library without being reliant on other people's implementation of the interface. There are other projects that might interest you like:

Problems with those solutions are package managers, naming conventions, managed code, etc... I think that each project / game is different and that you should build your own basic tools for each task, not only to reduce overhead but to keep things simple as well.

Now, if you like to do things your own way (like me) and use the bare bones API, then read on. The key to interface SDL2 with a scripting language is to automate the generation of the "glue" code you need.

From my research, I would say luajit-ffi is the best option:

  • simplicity
  • flexibility
  • performance

Usage

The preprocessor projet contains scripts to extract defintions found on the SDL2 wiki: https://wiki.libsdl.org/FrontPage

The luajit project is just for testing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published