… | |
… | |
580 | |
580 | |
581 | static void |
581 | static void |
582 | deliantra_main () |
582 | deliantra_main () |
583 | { |
583 | { |
584 | char *argv[] = { 0 }; |
584 | char *argv[] = { 0 }; |
585 | call_argv ("::main", G_DISCARD | G_VOID, argv); |
585 | call_argv ("DC::Main::main", G_DISCARD | G_VOID, argv); |
586 | } |
586 | } |
587 | |
587 | |
588 | #ifdef __MACOSX__ |
588 | #ifdef __MACOSX__ |
589 | /* to due surprising braindamage on the side of SDL design, we |
589 | /* to due surprising braindamage on the side of SDL design, we |
590 | * do some mind-boggling hack here: SDL requires a custom main() |
590 | * do some mind-boggling hack here: SDL requires a custom main() |
591 | * on OS X, so... we provide one and call the original main(), which, |
591 | * on OS X, so... we provide one and call the original main(), which, |
592 | * due to share dlibrary magic, calls -lSDLmain's main, not perl's main, |
592 | * due to shared library magic, calls -lSDLmain's main, not perl's main, |
593 | * and which calls our main (== SDL_main) back. |
593 | * and which calls our main (== SDL_main) back. |
594 | */ |
594 | */ |
595 | extern C_LINKAGE int |
595 | extern C_LINKAGE int |
596 | main (int argc, char *argv[]) |
596 | main (int argc, char *argv[]) |
597 | { |
597 | { |
… | |
… | |
975 | SDL_GetAppState () |
975 | SDL_GetAppState () |
976 | |
976 | |
977 | int |
977 | int |
978 | SDL_GetModState () |
978 | SDL_GetModState () |
979 | |
979 | |
|
|
980 | int |
|
|
981 | SDL_WaitEvent () |
|
|
982 | C_ARGS: 0 |
|
|
983 | |
980 | void |
984 | void |
|
|
985 | SDL_PumpEvents () |
|
|
986 | |
|
|
987 | void |
981 | poll_events () |
988 | peep_events () |
982 | PPCODE: |
989 | PPCODE: |
983 | { |
990 | { |
984 | SDL_Event ev; |
991 | SDL_Event ev; |
985 | |
992 | |
986 | SDL_PumpEvents (); |
993 | SDL_PumpEvents (); |
… | |
… | |
1139 | OUTPUT: |
1146 | OUTPUT: |
1140 | RETVAL |
1147 | RETVAL |
1141 | |
1148 | |
1142 | void |
1149 | void |
1143 | IMG_Init (int flags = IMG_INIT_JPG | IMG_INIT_PNG) |
1150 | IMG_Init (int flags = IMG_INIT_JPG | IMG_INIT_PNG) |
|
|
1151 | |
|
|
1152 | void |
|
|
1153 | Mix_Init (int flags = MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG) |
1144 | |
1154 | |
1145 | void |
1155 | void |
1146 | load_image_inline (SV *image_) |
1156 | load_image_inline (SV *image_) |
1147 | ALIAS: |
1157 | ALIAS: |
1148 | load_image_file = 1 |
1158 | load_image_file = 1 |