Add missing SDL symbols.
This commit is contained in:
parent
f3b4240b87
commit
6e4dfc8eb5
1 changed files with 9 additions and 0 deletions
|
|
@ -163,6 +163,15 @@ proc IMG_Linked_Version*(): Pversion{.importc: "IMG_Linked_Version",
|
||||||
# surface afterwards by calling:
|
# surface afterwards by calling:
|
||||||
# SDL_SetColorKey(image, SDL_RLEACCEL, image.format.colorkey);
|
# SDL_SetColorKey(image, SDL_RLEACCEL, image.format.colorkey);
|
||||||
#
|
#
|
||||||
|
|
||||||
|
const
|
||||||
|
IMG_INIT_JPG* = 0x00000001
|
||||||
|
IMG_INIT_PNG* = 0x00000002
|
||||||
|
IMG_INIT_TIF* = 0x00000004
|
||||||
|
IMG_INIT_WEBP* = 0x00000008
|
||||||
|
|
||||||
|
proc IMG_Init*(flags: cint): int {.cdecl, importc: "IMG_Init".}
|
||||||
|
proc IMG_Quit*() {.cdecl, importc: "IMG_Quit".}
|
||||||
proc IMG_LoadTyped_RW*(src: PRWops, freesrc: cint, theType: cstring): PSurface{.
|
proc IMG_LoadTyped_RW*(src: PRWops, freesrc: cint, theType: cstring): PSurface{.
|
||||||
cdecl, importc: "IMG_LoadTyped_RW", dynlib: ImageLibName.}
|
cdecl, importc: "IMG_LoadTyped_RW", dynlib: ImageLibName.}
|
||||||
# Convenience functions
|
# Convenience functions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue