Carp/core/SDL_image.carp

14 lines
419 B
Plaintext
Raw Normal View History

2020-05-12 21:24:40 +03:00
(posix-only
2019-03-22 21:21:26 +03:00
(system-include "SDL2/SDL_image.h")
2019-06-14 11:46:15 +03:00
(add-pkg "SDL2_image"))
2017-06-26 12:15:03 +03:00
2019-03-22 21:21:26 +03:00
(windows-only
(system-include "SDL_image.h")
2020-04-06 10:28:50 +03:00
(add-cflag (str "-I" sdl-windows-header-path))
(add-lib (str sdl-windows-library-path "SDL2_image.lib ")))
2019-03-22 21:12:33 +03:00
2018-03-20 14:49:46 +03:00
(defmodule IMG
2020-05-11 17:10:35 +03:00
(register load-texture (Fn [(Ptr SDL_Renderer) (Ptr CChar)] (Ptr SDL_Texture)) "IMG_LoadTexture")
(register load (Fn [(Ptr CChar)] (Ptr SDL_Surface)) "IMG_Load")
2018-03-20 14:49:46 +03:00
)