This commit is contained in:
Erik Svedäng 2019-03-22 19:12:33 +01:00
parent 636b691912
commit 6e113702ad
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,11 @@
(system-include "SDL2/SDL_image.h")
(add-lib "-lSDL2_image")
;; Windows
;; (system-include "SDL_image.h")
;; (add-cflag "-I.\\vendor\\SDL2_image-2.0.4\\include")
;; (add-lib ".\\vendor\\SDL2_image-2.0.4\\lib\\x64\\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")

View File

@ -6,6 +6,8 @@
* Unsorted Todo:s
** Defining a sumtype with just one case gives strange error message.
** Could assert that functions sent to extern code doesn't have an environment (that'd mean that a Lambda is passed outside Carp-land where it most likely won't work)
** 'local-include' not needed, just need 'relative-include'?
** (load) behaves unintuitively when placed into files, should be relative to the file
* Critical Bugs
** 0.3
*** References must keep track of their origin and prevent usage of them if the origin has been given away.