コード例 #1
0
ファイル: vertex_converters.hpp プロジェクト: cp5458/mapnik
 vertex_converter(bbox_type const& b,
                  rasterizer_type & ras,
                  symbolizer_type const& sym,
                  trans_type const& tr,
                  proj_trans_type const& prj_trans,
                  affine_trans_type const& affine_trans,
                  feature_type const& feature,
                  attributes const& vars,
                  double scale_factor)
     : disp_(args_type(boost::cref(b),
                       boost::ref(ras),
                       boost::cref(sym),
                       boost::cref(tr),
                       boost::cref(prj_trans),
                       boost::cref(affine_trans),
                       boost::cref(feature),
                       boost::cref(vars),
                       scale_factor)) {}
コード例 #2
0
ファイル: frontend.c プロジェクト: SuperrSonic/RA-SS
#define returnfunc() return 0
#define return_var(var) return var
#define declare_argc()
#define declare_argv()
#define args_initial_ptr() NULL

#endif

#if !defined(__APPLE__) && !defined(EMSCRIPTEN)
#define HAVE_MAIN_LOOP
#endif

#define MAX_ARGS 32

int main_entry_decide(signature(), args_type() args)
{
   int ret = rarch_main_iterate();

   if (ret == -1)
   {
      if (g_extern.core_shutdown_initiated 
            && g_settings.load_dummy_on_core_shutdown)
      {
         /* Load dummy core instead of exiting RetroArch completely. */
         rarch_main_command(RARCH_CMD_PREPARE_DUMMY);
         g_extern.core_shutdown_initiated = false;
         return 0;
      }
   }
コード例 #3
0
ファイル: frontend.c プロジェクト: FPlusPSN/RetroArch
#define attempt_load_game_fails (1ULL << MODE_MENU_PREINIT)
#else
#define attempt_load_game_fails (1ULL << MODE_EXIT)
#endif

#if defined(RARCH_CONSOLE) || defined(__APPLE__)
#define load_dummy_on_core_shutdown false
#else
#define load_dummy_on_core_shutdown true
#endif

#define frontend_init_enable true
#define menu_init_enable true
#define initial_lifecycle_state_preinit false

int main_entry_iterate(signature(), args_type() args)
{
   int i;
   static retro_keyboard_event_t key_event;

   if (g_extern.system.shutdown)
   {
#ifdef HAVE_MENU
      // Load dummy core instead of exiting RetroArch completely.
      if (load_dummy_on_core_shutdown)
         load_menu_game_prepare_dummy();
      else
#endif
         return 1;
   }
   else if (g_extern.lifecycle_state & (1ULL << MODE_CLEAR_INPUT))
コード例 #4
0
ファイル: frontend.c プロジェクト: TroggleMonkey/RetroArch
#define declare_argc()
#define declare_argv()
#define args_initial_ptr() NULL

#endif

#if !defined(RARCH_CONSOLE) && !defined(__QNX__) && !defined(ANDROID)
#define attempt_load_game_push_history true
#else
#define attempt_load_game_push_history false
#endif

static retro_keyboard_event_t key_event;

#ifdef HAVE_MENU
static int main_entry_iterate_clear_input(args_type() args)
{
   (void)args;

   rarch_input_poll();
   if (!menu_input())
   {
      // Restore libretro keyboard callback.
      g_extern.system.key_event = key_event;

      g_extern.lifecycle_state &= ~(1ULL << MODE_CLEAR_INPUT);
   }

   return 0;
}