SDL(S
imple D
irectMedia L
ayer)
cl-sdl2
- ์์ค
- ํํ ๋ฆฌ์ผ
- https://github.com/rpav/cl-autowrap
- https://github.com/rpav/c2ffi
- Clang์ ์ด์ฉํ์ฌ JSONํ์์ FFI wrapper๋ฅผ ์์ฑํด์ฃผ๋ ํด์ ๋๋ค.
- https://github.com/libffi/libffi
- autowrap์ ์ด์ฉํ์ฌ ๊ตฌ์กฐ์ฒด๋ฅผ ์ ๋ฌํ๊ณ ๋ฐํํ๋ ํจ์๋ฅผ ํธ์ถํ ์ ์์ต๋๋ค.
- https://github.com/rpav/c2ffi
# ubuntu
$ sudo apt-get install libsdl2-2.0
# macOs
$ brew install sdl2
# mac c2ffi problem
# https://github.com/lispgames/cl-sdl2/issues/154#issuecomment-1280030566
$ sbcl
> (ql:quickload :sdl2)