mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-04 19:26:10 +03:00
14 lines
419 B
Plaintext
14 lines
419 B
Plaintext
(posix-only
|
|
(system-include "SDL2/SDL_image.h")
|
|
(add-pkg "SDL2_image"))
|
|
|
|
(windows-only
|
|
(system-include "SDL_image.h")
|
|
(add-cflag (str "-I" sdl-windows-header-path))
|
|
(add-lib (str sdl-windows-library-path "SDL2_image.lib ")))
|
|
|
|
(defmodule IMG
|
|
(register load-texture (Fn [(Ptr SDL_Renderer) (Ptr CChar)] (Ptr SDL_Texture)) "IMG_LoadTexture")
|
|
(register load (Fn [(Ptr CChar)] (Ptr SDL_Surface)) "IMG_Load")
|
|
)
|