Skip to content

prototype99/libjsdl

 
 

Repository files navigation

LibJSDL

LibJSDL is a mapping of SDL2 APIs to Java. There are two goals for LibJSDL:

  • Provide as direct of a mapping of SDL APIs as possible.
  • Provide as performant of a mapping as possible.

Because of these goals, there is a lot of room for Java niceties (enums, encapsulation, AutoClosable, type-safety, etc.) which are intentionally avoided. These can be applied by wrapping the raw API, but it is outside the scope of this project.

Not Implemented

  • SDL_assert.h was not implemented.
  • SDL_SysWMinfo.h was not implemented.
  • Threads (SDL_thread.h, SDL_mutex.h, SDL_atomic.h) was not implemented.
  • Platform and CPU Information (SDL_platform.h, SDL_cpuinfo.h, SDL_endian.h, SDL_bits.h)

Some code was improved by looking at https://github.com/Gaming32/SDL4J , please check it out!

About

A direct port of SDL2 to Java using JNA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 78.8%
  • Java 19.9%
  • Other 1.3%