… | |
… | |
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 | { |
… | |
… | |
821 | |
821 | |
822 | const_iv (FOW_DARKNESS) |
822 | const_iv (FOW_DARKNESS) |
823 | # undef const_iv |
823 | # undef const_iv |
824 | }; |
824 | }; |
825 | |
825 | |
826 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
826 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ > const_iv; civ--) |
827 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
827 | newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv)); |
828 | |
828 | |
829 | assert (SDLK_MODIFIER_MIN == SDLK_NUMLOCK); |
829 | assert (SDLK_MODIFIER_MIN == SDLK_NUMLOCK); |
830 | assert (SDLK_MODIFIER_MAX == SDLK_COMPOSE); |
830 | assert (SDLK_MODIFIER_MAX == SDLK_COMPOSE); |
831 | } |
831 | } |
832 | |
832 | |
… | |
… | |
1139 | OUTPUT: |
1139 | OUTPUT: |
1140 | RETVAL |
1140 | RETVAL |
1141 | |
1141 | |
1142 | void |
1142 | void |
1143 | IMG_Init (int flags = IMG_INIT_JPG | IMG_INIT_PNG) |
1143 | IMG_Init (int flags = IMG_INIT_JPG | IMG_INIT_PNG) |
|
|
1144 | |
|
|
1145 | void |
|
|
1146 | Mix_Init (int flags = MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG) |
1144 | |
1147 | |
1145 | void |
1148 | void |
1146 | load_image_inline (SV *image_) |
1149 | load_image_inline (SV *image_) |
1147 | ALIAS: |
1150 | ALIAS: |
1148 | load_image_file = 1 |
1151 | load_image_file = 1 |
… | |
… | |
3158 | const_iv (GL_FUNC_SUBTRACT), |
3161 | const_iv (GL_FUNC_SUBTRACT), |
3159 | const_iv (GL_FUNC_REVERSE_SUBTRACT), |
3162 | const_iv (GL_FUNC_REVERSE_SUBTRACT), |
3160 | # undef const_iv |
3163 | # undef const_iv |
3161 | }; |
3164 | }; |
3162 | |
3165 | |
3163 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
3166 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ > const_iv; civ--) |
3164 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
3167 | newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv)); |
3165 | |
3168 | |
3166 | texture_av = newAV (); |
3169 | texture_av = newAV (); |
3167 | AvREAL_off (texture_av); |
3170 | AvREAL_off (texture_av); |
3168 | } |
3171 | } |
3169 | |
3172 | |