BOOL InitRadar(void) { // Ally/enemy/me colors colRadarAlly = WZCOL_YELLOW; colRadarEnemy = WZCOL_RED; colRadarMe = WZCOL_WHITE; pie_InitRadar(); return true; }
// //////////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////////// // Called once on program startup. // bool systemInitialise(void) { if (!widgInitialise()) { return false; } buildMapList(); // Initialize render engine if (!pie_Initialise()) { debug(LOG_ERROR, "Unable to initialise renderer"); return false; } if (!audio_Init(droidAudioTrackStopped, war_getSoundEnabled())) { debug(LOG_SOUND, "Continuing without audio"); } if (war_getSoundEnabled() && war_GetMusicEnabled()) { cdAudio_Open(UserMusicPath); } else { debug(LOG_SOUND, "Music disabled"); } if (!dataInitLoadFuncs()) // Pass all the data loading functions to the framework library { return false; } if (!fpathInitialise()) { return false; } // Initialize the iVis text rendering module iV_TextInit(); // Fix badly named OpenGL functions. Must be done after iV_TextInit, to avoid the renames being clobbered by an extra glewInit() call. screen_EnableMissingFunctions(); pie_InitRadar(); iV_Reset(); // Reset the IV library. readAIs(); return true; }
bool InitRadar(void) { // Ally/enemy/me colors colRadarAlly = WZCOL_YELLOW; colRadarEnemy = WZCOL_RED; colRadarMe = WZCOL_WHITE; if (mapWidth < 150) // too small! { RadarZoom = pie_GetVideoBufferWidth() <= 640 ? 14 : DEFAULT_RADARZOOM * 2; } pie_InitRadar(); return true; }
// //////////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////////// // Called once on program startup. // bool systemInitialise(void) { if (!widgInitialise()) { return false; } buildMapList(); // Initialize render engine if (!pie_Initialise()) { debug(LOG_ERROR, "Unable to initialise renderer"); return false; } if (!audio_Init(droidAudioTrackStopped, war_getSoundEnabled())) { debug(LOG_SOUND, "Continuing without audio"); } if (war_getSoundEnabled() && war_GetMusicEnabled()) { cdAudio_Open(UserMusicPath); } else { debug(LOG_SOUND, "Music disabled"); } if (!dataInitLoadFuncs()) // Pass all the data loading functions to the framework library { return false; } if (!fpathInitialise()) { return false; } // Initialize the iVis text rendering module wzSceneBegin("Main menu loop"); iV_TextInit(); pie_InitRadar(); return true; }