mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
19 lines
595 B
Plaintext
19 lines
595 B
Plaintext
(not-on-windows
|
|
(system-include "SDL2/SDL_image.h")
|
|
(add-pkg "SDL2_image"))
|
|
|
|
(defmodule IMG
|
|
(defmodule Windows
|
|
(defdynamic header-path "C:\\SDL2_image-2.0.4\\include")
|
|
(defdynamic library-path "C:\\SDL2_image-2.0.4\\lib\\x86\\")))
|
|
|
|
(windows-only
|
|
(system-include "SDL_image.h")
|
|
(add-cflag (str "-I" IMG.Windows.header-path))
|
|
(add-lib (str "/link " IMG.Windows.library-path "SDL2_image.lib ")))
|
|
|
|
(defmodule IMG
|
|
(register load-texture (Fn [(Ptr SDL_Renderer) (Ptr Char)] (Ptr SDL_Texture)) "IMG_LoadTexture")
|
|
(register load (Fn [(Ptr Char)] (Ptr SDL_Surface)) "IMG_Load")
|
|
)
|