viewer.cpp File Reference

A window into the virtual world. More...

#include "llviewerprecompiledheaders.h"
#include "viewer.h"
#include "llparcel.h"
#include "llviewerparcelmgr.h"
#include "llviewerjoystick.h"
#include <errno.h>
#include <stdexcept>
#include <sys/file.h>
#include <signal.h>
#include <sys/stat.h>
#include <memory>
#include <boost/tokenizer.hpp>
#include "audioengine.h"
#include "llcommon.h"
#include "llapr.h"
#include "llcachename.h"
#include "llcurl.h"
#include "llcriticaldamp.h"
#include "lldir.h"
#include "lleconomy.h"
#include "llerrorcontrol.h"
#include "llhttpnode.h"
#include "llflexibleobject.h"
#include "llfasttimer.h"
#include "llfocusmgr.h"
#include "llgroupmgr.h"
#include "llimage.h"
#include "llimageworker.h"
#include "lllfsthread.h"
#include "llmemtype.h"
#include "llmd5.h"
#include "llsecondlifeurls.h"
#include "llversionviewer.h"
#include "llvfile.h"
#include "llvfs.h"
#include "llwindow.h"
#include "llworkerthread.h"
#include "llvfsthread.h"
#include "llxfermanager.h"
#include "message.h"
#include "llvoavatar.h"
#include "llglslshader.h"
#include "llagent.h"
#include "llagentpilot.h"
#include "llbutton.h"
#include "llcallbacklist.h"
#include "llchatbar.h"
#include "llconsole.h"
#include "llcontainerview.h"
#include "lldebugview.h"
#include "lldrawpoolbump.h"
#include "lldrawpoolterrain.h"
#include "lleventnotifier.h"
#include "llfasttimerview.h"
#include "llfeaturemanager.h"
#include "llfirstuse.h"
#include "llfloateravatarlist.h"
#include "llfloateractivespeakers.h"
#include "llfloatertools.h"
#include "llfloaterworldmap.h"
#include "llfloaterhtmlhelp.h"
#include "llfloatersaveavatar.h"
#include "llfloatersnapshot.h"
#include "llfloatereventlog.h"
#include "llfolderview.h"
#include "llframestats.h"
#include "llgesturemgr.h"
#include "llhoverview.h"
#include "llhudeffecttrail.h"
#include "llhudmanager.h"
#include "llhttpclient.h"
#include "llimview.h"
#include "llimpanel.h"
#include "llinventorymodel.h"
#include "llinventoryview.h"
#include "llkeyboard.h"
#include "llkeyframemotion.h"
#include "llpanellogin.h"
#include "llmutelist.h"
#include "llmenugl.h"
#include "llnamelistctrl.h"
#include "llnamebox.h"
#include "llnameeditor.h"
#include "llpumpio.h"
#include "llnotify.h"
#include "llregionnamecache.h"
#include "llselectmgr.h"
#include "llsky.h"
#include "llsrv.h"
#include "llstartup.h"
#include "llstatusbar.h"
#include "llsurface.h"
#include "lltexlayer.h"
#include "lltexturecache.h"
#include "lltexturefetch.h"
#include "lltoolbar.h"
#include "lltoolmgr.h"
#include "lltracker.h"
#include "lltrustnet.h"
#include "llurldispatcher.h"
#include "llurlsimstring.h"
#include "llurlwhitelist.h"
#include "llv4math.h"
#include "llviewerbuild.h"
#include "llviewercamera.h"
#include "llviewercontrol.h"
#include "llviewerjointmesh.h"
#include "llviewerimagelist.h"
#include "llviewerkeyboard.h"
#include "llviewermenu.h"
#include "llviewermessage.h"
#include "llviewernetwork.h"
#include "llviewerobjectlist.h"
#include "llviewerregion.h"
#include "llviewerstats.h"
#include "llviewerthrottle.h"
#include "llvieweruictrlfactory.h"
#include "llviewerwindow.h"
#include "llvlmanager.h"
#include "llvograss.h"
#include "llvotree.h"
#include "llvovolume.h"
#include "llvowater.h"
#include "llvolume.h"
#include "llvolumemgr.h"
#include "llvolumemessage.h"
#include "llweb.h"
#include "llworld.h"
#include "llworldmap.h"
#include "llworldmapview.h"
#include "pipeline.h"
#include "llface.h"
#include "audiosettings.h"
#include "res/resource.h"
#include "llvoiceclient.h"
#include "llmediaengine.h"
#include "moviemaker.h"

Include dependency graph for viewer.cpp:

Go to the source code of this file.

Classes

class  LLVectorizationEnableListener
class  LLVectorizeSkinListener
class  LLVectorProcessorListener
class  ViewerStatsResponder

Defines

#define LL_SEND_CRASH_REPORTS   1
#define TIME_THROTTLE_MESSAGES
#define CHECK_MESSAGES_DEFAULT_MAX_TIME   .020f

Functions

void errorCallback (const std::string &error_string)
void init_marker_file ()
void init_crash_handler ()
void init_logging ()
void create_console ()
void write_system_info ()
int parse_args (int argc, char **argv)
void saved_settings_to_globals ()
BOOL init_cache ()
void purge_cache ()
void cleanup_app ()
void disconnect_viewer (void *)
void write_debug (const char *str)
void write_debug (const std::string &str)
void close_debug ()
void catch_signals ()
void viewer_crash_callback ()
void remove_marker_file ()
void release_signals ()
void bad_network_handler ()
std::string get_serial_number ()
bool send_url_to_other_instance (const std::string &url)
BOOL another_instance_running ()
void main_loop ()
void uuid_table_request_file_callback (void **user_data, S32 result, LLExtStat ext_status)
void send_stats ()
void ui_audio_callback (const LLUUID &uuid)
int main (int argc, char **argv)
void check_for_events ()
void process_keystrokes_async ()
static bool being_debugged ()
void user_logout ()
void save_final_snapshot (void *)
void app_force_quit (const char *launch_file_on_quit)
static void finish_quit (S32 option, void *userdata)
void app_user_quit ()
void app_request_quit ()
void app_abort_quit ()
void idle_shutdown ()
void update_statistics (U32 frame_count)
void idle_network ()
void idle_afk_check ()
void request_initial_instant_messages ()
void idle ()
F32 mouse_x_from_center (S32 x)
F32 mouse_y_from_center (S32 y)
void init_audio ()
void audio_update_volume (bool force_update)
void audio_update_listener ()
void audio_update_wind (bool force_update)
BOOL raycast_for_new_obj_pos (S32 x, S32 y, LLViewerObject **hit_obj, S32 *hit_face, BOOL *b_hit_land, LLVector3 *ray_start_region, LLVector3 *ray_end_region, LLViewerRegion **region)
BOOL add_object (LLPCode pcode, S32 x, S32 y, U8 use_physics)
void update_vector_performances (void)
void cleanup_saved_settings ()
void callback_cache_name (const LLUUID &id, const char *firstname, const char *lastname, BOOL is_group, void *data)
void print_agent_nvpairs (void *)
void reset_statistics ()
void output_statistics (void *)
void signal_handlers (S32 s)
void load_name_cache ()
void save_name_cache ()
void load_region_name_cache ()
void save_region_name_cache ()
void login_alert_done (S32 option, void *user_data)
void remove_cache_files (const char *file_mask)
void finish_early_exit (S32 option, void *userdata)
void app_early_exit (const LLString &mesg)
void app_force_exit (S32 arg)
void finish_disconnect (S32 option, void *userdata)
void finish_forced_disconnect (S32, void *)
void send_logout_request ()
void do_disconnect (const LLString &mesg)
const LLUUIDagent_get_id ()
const LLUUIDagent_get_session_id ()
void agent_send_reliable_message ()
void save_avatar (void *)
void resetURIs ()
const std::vector< std::string > & getLoginURIs ()
const std::string & getHelperURI ()

Variables

S32 gCrashBehavior = CRASH_BEHAVIOR_ASK
void(*) gCrashCallback (void) = NULL
BOOL gReportedCrash = FALSE
bool gVerifySSLCert = true
BOOL gHandleKeysAsync = FALSE
BOOL gProbeHardware = TRUE
std::string gSerialNumber
BOOL gAgentMovementCompleted = FALSE
BOOL gHaveSavedSnapshot = FALSE
S32 gYieldMS = 0
BOOL gYieldTime = FALSE
const U32 COLLISION_LIST_DEPTH = 300
const S32 MAX_CONSOLE_LINES = 500
const S32 NUM_SESSIONS_BEFORE_SHOW_PROFILE = 5
const F32 DEFAULT_AFK_TIMEOUT = 5.f * 60.f
const char * VFS_DATA_FILE_BASE = "data.db2.x."
const char * VFS_INDEX_FILE_BASE = "index.db2.x."
F32 gSimLastTime
F32 gSimFrames
LLString gSecondLife
LLString gWindowTitle
static char sWindowClass [] = "Dale's Unofficial Viewer"
LLString gDisabledMessage
BOOL gHideLinks = FALSE
BOOL gInProductionGrid = FALSE
static EUserServerDomain UserServerDefaultChoice = USERSERVER_DMZ
BOOL gHackGodmode = FALSE
std::vector< std::string > gLoginURIs
static std::string gHelperURI
LLAgent gAgent
LLPipeline gPipeline
BOOL gDoDisconnect = FALSE
BOOL gDisconnected = FALSE
BOOL gPurgeOnExit = FALSE
BOOL gPurgeCache = FALSE
BOOL gMultipleViewersOK = TRUE
BOOL gSecondInstance = FALSE
BOOL gDisableVoice = FALSE
LLString gArgs
BOOL gQuit = FALSE
BOOL gQuitRequested = FALSE
LLString gLaunchFileOnQuit
BOOL gDoneLogout = FALSE
BOOL gInitializationComplete = FALSE
BOOL gAutoLogin = FALSE
LLString gOldSettingsFileName
BOOL gPrintMessagesThisFrame = FALSE
const char * DEFAULT_SETTINGS_FILE = "settings_dale.xml"
const char * LEGACY_DEFAULT_SETTINGS_FILE = "settings_dale.ini"
BOOL gUseWireframe = FALSE
LLUUID gViewerDigest
LLPumpIOgServicePump = NULL
S32 gNumSessions = 0
BOOL gAllowIdleAFK = TRUE
F32 gAFKTimeout = DEFAULT_AFK_TIMEOUT
F32 gMouseSensitivity = 3.f
BOOL gInvertMouse = FALSE
BOOL gLogoutRequestSent = FALSE
LLTimer gLogoutTimer
BOOL gShowObjectUpdates = FALSE
const F32 LOGOUT_REQUEST_TIME = 6.f
F32 gLogoutMaxTime = LOGOUT_REQUEST_TIME
F32 gMapScale = 128.f
F32 gMiniMapScale = 128.f
LLSky gSky
BOOL gDisplayWindInfo = FALSE
BOOL gDisplayCameraPos = FALSE
BOOL gDisplayNearestWater = FALSE
BOOL gDoNearestWaterSearch = FALSE
BOOL gDisplayFOV = FALSE
LLFrameTimer gRestoreGLTimer
BOOL gRestoreGL = FALSE
LLVFSgStaticVFS = NULL
LLTextureCachegTextureCache = NULL
LLWorkerThreadgImageDecodeThread = NULL
LLTextureFetchgTextureFetch = NULL
FILE * gDebugFile = NULL
BOOL gRandomizeFramerate = FALSE
BOOL gPeriodicSlowFrame = FALSE
std::map< S32, LLFrameTimergDebugTimers
U64 gFrameTime = 0
F32 gFrameTimeSeconds = 0.f
F32 gFrameIntervalSeconds = 0.f
U32 gFrameCount = 0
U32 gForegroundFrameCount = 0
U64 gStartTime = 0
U64 gSpaceTime = 0
LLTimer gRenderStartTime
LLFrameTimer gForegroundTime
F32 gQuitAfterSeconds = 0.f
BOOL gRotateRight = FALSE
BOOL gPacificDaylightTime = FALSE
U32 gSecondsPerDay = 0
U32 gSecondsPerYear = 0
LLString gLastVersionChannel
LLVector3 gWindVec (3.0, 3.0, 0.0)
LLVector3 gRelativeWindVec (0.0, 0.0, 0.0)
BOOL gVelocityInterpolate = TRUE
BOOL gPingInterpolate = TRUE
LLMemoryInfo gSysMemory
LLOSInfo gSysOS
static const char USAGE []
BOOL gGodConnect = FALSE
BOOL gUseConsole = TRUE
BOOL gUseAudio = TRUE
BOOL gUseFMOD = TRUE
BOOL gLogMessages = FALSE
BOOL gRequestInventoryLibrary = TRUE
BOOL gAcceptTOS = FALSE
BOOL gAcceptCriticalMessage = FALSE
std::string gChannelName = LL_CHANNEL
LLUUID gInventoryLibraryOwner
LLUUID gInventoryLibraryRoot
bool gPreloadImages = true
bool gPreloadSounds = true
LLString gCmdLineFirstName
LLString gCmdLineLastName
LLString gCmdLinePassword
std::map< std::string, std::string > gCommandLineSettings
std::map< std::string, std::string > gCommandLineForcedSettings
BOOL gLastExecFroze = FALSE
BOOL gIgnorePixelDepth = FALSE
LLPointer< LLImageGLgDisconnectedImagep = NULL
BOOL gbCapturing
MovieMaker gMovieMaker
FILE * gMarkerFile = NULL
U32 gTotalLandIn = 0
U32 gTotalLandOut = 0
U32 gTotalWaterIn = 0
U32 gTotalWaterOut = 0
F32 gAveLandCompression = 0.f
F32 gAveWaterCompression = 0.f
F32 gBestLandCompression = 1.f
F32 gBestWaterCompression = 1.f
F32 gWorstLandCompression = 0.f
F32 gWorstWaterCompression = 0.f
F32 gFPSClamped = 10.f
F32 gFrameDTClamped = 0.f
F32 gFrameDT = 0.f
U32 gPacketsIn = 0
U32 gTotalWorldBytes = 0
U32 gTotalObjectBytes = 0
U32 gTotalTextureBytes = 0
U32 gSimPingCount = 0
U32 gObjectBits = 0
F32 gAvgSimPing = 0.f
U32 gVisCompared
U32 gVisTested
static F32 CheckMessagesMaxTime = CHECK_MESSAGES_DEFAULT_MAX_TIME
const LLVector3 DEFAULT_OBJECT_SCALE (0.5f, 0.5f, 0.5f)
BOOL gVectorizePerfTest = TRUE
BOOL gVectorizeEnable = FALSE
U32 gVectorizeProcessor = 0
BOOL gVectorizeSkin = FALSE
static LLVectorizationEnableListener vectorization_enable_listener
static LLVectorizeSkinListener vectorize_skin_listener
static LLVectorProcessorListener vector_processor_listener


Detailed Description

A window into the virtual world.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file viewer.cpp.


Define Documentation

#define CHECK_MESSAGES_DEFAULT_MAX_TIME   .020f

Definition at line 3545 of file viewer.cpp.

Referenced by idle_network().

#define LL_SEND_CRASH_REPORTS   1

Definition at line 110 of file viewer.cpp.

#define TIME_THROTTLE_MESSAGES

Definition at line 3542 of file viewer.cpp.


Function Documentation

BOOL add_object ( LLPCode  pcode,
S32  x,
S32  y,
U8  use_physics 
)

Definition at line 4385 of file viewer.cpp.

References _PREHASH_AddFlags, _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BypassRaycast, _PREHASH_GroupID, _PREHASH_Material, _PREHASH_ObjectAdd, _PREHASH_ObjectData, _PREHASH_PCode, _PREHASH_RayEnd, _PREHASH_RayEndIsIntersection, _PREHASH_RayStart, _PREHASH_RayTargetID, _PREHASH_Rotation, _PREHASH_Scale, _PREHASH_SessionID, _PREHASH_State, LLMessageSystem::addQuatFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), LLMessageSystem::addVector3Fast(), LLHUDManager::createViewerEffect(), DEFAULT_OBJECT_SCALE, DEG_TO_RAD, LLSelectMgr::deselectAll(), f, FALSE, FLAGS_CREATE_SELECTED, FLAGS_USE_PHYSICS, gAgent, gAudiop, LLAgent::getAvatarObject(), LLAgent::getEffectColor(), LLControlGroup::getF32(), LLAgent::getGroupID(), LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getID(), LLViewerRegion::getPosGlobalFromRegion(), LLViewerRegion::getRegionFlags(), LLAgent::getSessionID(), LLControlGroup::getString(), LLViewerWindow::getWindow(), gHUDManager, gMessageSystem, gSavedSettings, gSelectMgr, gViewerStats, gViewerWindow, LLWindow::incBusyCount(), LLViewerStats::incStat(), LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), ll_frand(), LL_HUD_DUR_SHORT, LLHUDObject::LL_HUD_EFFECT_BEAM, LL_MCODE_WOOD, LL_PCODE_CONE, LL_PCODE_CONE_HEMI, LL_PCODE_CUBE, LL_PCODE_CYLINDER, LL_PCODE_CYLINDER_HEMI, LL_PCODE_LEGACY_GRASS, LL_PCODE_LEGACY_TREE, LL_PCODE_PATH_CIRCLE, LL_PCODE_PATH_LINE, LL_PCODE_PRISM, LL_PCODE_PROFILE_CIRCLE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_EQUALTRI, LL_PCODE_PROFILE_SQUARE, LL_PCODE_PYRAMID, LL_PCODE_SPHERE, LL_PCODE_SPHERE_HEMI, LL_PCODE_TETRAHEDRON, LL_PCODE_TORUS, LL_PCODE_TREE_NEW, LL_PCODE_VOLUME, LLViewerObject::LL_VO_SQUARE_TORUS, LLViewerObject::LL_VO_TRIANGLE_TORUS, llwarns, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, LLVolumeMessage::packVolumeParams(), raycast_for_new_obj_pos(), REGION_FLAGS_SANDBOX, S32, LLMessageSystem::sendReliable(), LLVolumeParams::setBeginAndEndS(), LLVolumeParams::setBeginAndEndT(), LLHUDEffect::setColor(), LLHUDEffect::setDuration(), LLUUID::setNull(), LLHUDObject::setPositionGlobal(), LLQuaternion::setQuat(), LLVolumeParams::setRatio(), LLVolumeParams::setShear(), LLHUDObject::setSourceObject(), LLVolumeParams::setType(), LLVector3::setVec(), LLVOGrass::sMaxGrassSpecies, LLVOTree::sMaxTreeSpecies, LLViewerStats::ST_CREATE_COUNT, LLAudioEngine::triggerSound(), TRUE, LLFirstUse::useSandbox(), and LLVector3::y_axis.

Referenced by LLToolPlacer::placeObject().

const LLUUID& agent_get_id (  ) 

Definition at line 6011 of file viewer.cpp.

References gAgent, and LLAgent::getID().

Referenced by LLFloaterAvatarPicker::find(), give_money(), process_logout_reply(), and LLFloaterAvatarPicker::processAvatarPickerReply().

const LLUUID& agent_get_session_id (  ) 

Definition at line 6016 of file viewer.cpp.

References gAgent, and LLAgent::getSessionID().

Referenced by LLFloaterAvatarPicker::find(), give_money(), and process_logout_reply().

void agent_send_reliable_message (  ) 

Definition at line 6021 of file viewer.cpp.

References gAgent, and LLAgent::sendReliableMessage().

Referenced by LLFloaterAvatarPicker::find().

BOOL another_instance_running (  ) 

Definition at line 1816 of file viewer.cpp.

References FALSE, LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_LOGS, llendl, llinfos, NULL, and TRUE.

Referenced by main().

void app_abort_quit (  ) 

Definition at line 3319 of file viewer.cpp.

References FALSE, gQuitRequested, and llinfos.

Referenced by LLPanelGroup::handleNotifyCallback(), LLScriptEdCore::handleSaveChangesDialog(), LLPreviewNotecard::handleSaveChangesDialog(), LLPreviewGesture::handleSaveChangesDialog(), and LLPanelClassified::saveCallback().

void app_early_exit ( const LLString mesg  ) 

Definition at line 5928 of file viewer.cpp.

References finish_early_exit(), gDoDisconnect, llwarns, NULL, LLAlertDialog::showCritical(), and TRUE.

Referenced by idle_startup().

void app_force_exit ( S32  arg  ) 

Definition at line 5939 of file viewer.cpp.

References remove_marker_file().

Referenced by LLViewerWindow::LLViewerWindow().

void app_force_quit ( const char *  launch_file_on_quit  ) 

Definition at line 3252 of file viewer.cpp.

References gLaunchFileOnQuit, gQuit, and TRUE.

Referenced by app_request_quit(), finish_disconnect(), finish_early_exit(), finish_forced_disconnect(), LLViewerWindow::handleQuit(), idle(), idle_shutdown(), idle_startup(), process_logout_reply(), signal_handlers(), update_check_failure_dialog_callback(), update_dialog_callback(), and LLAgentPilot::updateTarget().

void app_request_quit (  ) 

Definition at line 3281 of file viewer.cpp.

References app_force_quit(), LLFloaterView::closeAllChildren(), LLHUDManager::createViewerEffect(), gAgent, LLAgent::getEffectColor(), LLAgent::getPositionGlobal(), LLAgent::getRegion(), LLStartUp::getStartupState(), gFloaterView, gHUDManager, gLogoutTimer, gQuitRequested, LLHUDObject::LL_HUD_EFFECT_POINT, llinfos, NULL, LLTimer::reset(), send_stats(), LLHUDManager::sendEffects(), LLHUDEffect::setColor(), LLHUDObject::setPositionGlobal(), STATE_STARTED, and TRUE.

Referenced by finish_quit(), and LLProgressView::onCancelButtonClicked().

void app_user_quit (  ) 

Definition at line 3273 of file viewer.cpp.

References LLViewerWindow::alertXml(), finish_quit(), gViewerWindow, and NULL.

Referenced by LLViewerWindow::handleCloseRequest(), LLFileQuit::handleEvent(), and LLProgressView::handleKeyHere().

void audio_update_listener (  ) 

Definition at line 4246 of file viewer.cpp.

References gAgent, gAudiop, gCamera, LLCoordFrame::getAtAxis(), LLAgent::getCameraPositionGlobal(), LLCoordFrame::getUpAxis(), LLAgent::getVelocity(), LLAudioEngine::setListener(), and LLVector3::setVec().

Referenced by idle().

void audio_update_volume ( bool  force_update  ) 

Definition at line 4181 of file viewer.cpp.

References audio_update_wind(), LLAudioEngine::enableWind(), gAudiop, LLViewerWindow::getActive(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLMediaEngine::getInstance(), gSavedSettings, gViewerWindow, gVoiceClient, LLAudioEngine::setDistanceFactor(), LLAudioEngine::setDopplerFactor(), LLAudioEngine::setInternetStreamGain(), LLAudioEngine::setMasterGain(), LLVoiceClient::setMicGain(), LLAudioEngine::setMuted(), LLVoiceClient::setMuteMic(), LLAudioEngine::setRolloffFactor(), LLVoiceClient::setVoiceVolume(), LLMediaEngine::setVolume(), and TRUE.

Referenced by LLViewerWindow::handleActivate(), LLAudioListener::handleEvent(), idle(), idle_startup(), and init_audio().

void audio_update_wind ( bool  force_update  ) 

Definition at line 4264 of file viewer.cpp.

References f, gAgent, gAudiop, LLAgent::getCameraPositionAgent(), LLControlGroup::getF32(), LLAgent::getFrameAgent(), LLAgent::getRegion(), LLAgent::getVelocity(), LLViewerRegion::getWaterHeight(), gRelativeWindVec, gSavedSettings, gWindVec, LL_ROLLOFF_MULTIPLIER_UNDER_WATER, LLAudioEngine::mMaxWindGain, LLVector3::mV, LLCoordFrame::rotateToLocal(), LLAudioEngine::setRolloffFactor(), LLAudioEngine::updateWind(), and VZ.

Referenced by audio_update_volume(), and idle().

void bad_network_handler (  ) 

static bool being_debugged (  )  [inline, static]

Definition at line 2549 of file viewer.cpp.

References base, n, and NULL.

Referenced by catch_signals(), and viewer_crash_callback().

void callback_cache_name ( const LLUUID id,
const char *  firstname,
const char *  lastname,
BOOL  is_group,
void data 
)

Definition at line 4957 of file viewer.cpp.

References dialog_refresh_all(), LLNameListCtrl::refreshAll(), LLNameBox::refreshAll(), and LLNameEditor::refreshAll().

Referenced by idle_startup().

void catch_signals (  ) 

Definition at line 5379 of file viewer.cpp.

References being_debugged(), LLWinDebug::setupExceptionHandler(), and signal_handlers().

Referenced by init_crash_handler().

void check_for_events (  ) 

Definition at line 1854 of file viewer.cpp.

References LLFastTimer::FTM_MESSAGES, LLWindow::gatherInput(), gViewerWindow, llendl, llwarns, LLViewerWindow::mWindow, and LLWinDebug::setupExceptionHandler().

Referenced by main_loop().

void cleanup_app (  ) 

void cleanup_saved_settings (  ) 

Definition at line 4901 of file viewer.cpp.

References CRASH_BEHAVIOR_SETTING, FALSE, gAgent, gAllowIdleAFK, gCrashBehavior, gCrashSettings, gDebugView, gDebugWindowProc, LLWindow::getFullscreen(), LLWindow::getMaximized(), LLWindow::getPosition(), gHandleKeysAsync, gMapScale, gMiniMapScale, gNoRender, gSavedSettings, gShowObjectUpdates, gViewerWindow, LLAgent::mDrawDistance, LLAgent::mInitialized, LLViewerWindow::mWindow, LLCoord::mX, LLCoord::mY, LLControlGroup::setBOOL(), LLControlGroup::setF32(), LLControlGroup::setS32(), LLHoverView::sShowHoverTips, and TRUE.

Referenced by cleanup_app().

void close_debug (  ) 

Definition at line 4991 of file viewer.cpp.

References gDebugFile, and NULL.

Referenced by cleanup_app(), and viewer_crash_callback().

void create_console (  ) 

Referenced by main().

void disconnect_viewer ( void  ) 

void do_disconnect ( const LLString mesg  ) 

Definition at line 5979 of file viewer.cpp.

References LLViewerWindow::alertXml(), finish_disconnect(), finish_forced_disconnect(), gDoDisconnect, LLStartUp::getStartupState(), gViewerWindow, STATE_STARTED, LLAgent::sTeleportErrorMessages, and TRUE.

Referenced by bad_network_handler(), handle_disconnect_viewer(), process_agent_movement_complete(), process_kick_user(), and LLWorld::removeRegion().

void errorCallback ( const std::string &  error_string  ) 

Definition at line 6394 of file viewer.cpp.

References LLError::crashAndLoop(), OSMB_OK, and OSMessageBox().

Referenced by main().

void finish_disconnect ( S32  option,
void userdata 
)

Definition at line 5946 of file viewer.cpp.

References app_force_quit(), and NULL.

Referenced by do_disconnect().

void finish_early_exit ( S32  option,
void userdata 
)

Definition at line 5923 of file viewer.cpp.

References app_force_quit(), and NULL.

Referenced by app_early_exit().

void finish_forced_disconnect ( S32  ,
void  
)

Definition at line 5955 of file viewer.cpp.

References app_force_quit(), and NULL.

Referenced by do_disconnect().

static void finish_quit ( S32  option,
void userdata 
) [static]

Definition at line 3265 of file viewer.cpp.

References app_request_quit().

Referenced by app_user_quit().

std::string get_serial_number (  ) 

Definition at line 2325 of file viewer.cpp.

References LLMD5::finalize(), LLMD5::hex_digest(), llendl, llwarns, MAX_STRING, MD5HEX_STR_SIZE, NULL, and LLMD5::update().

Referenced by main().

const std::string& getHelperURI (  ) 

Definition at line 6384 of file viewer.cpp.

References gHelperURI, gUserServerChoice, and gUserServerDomainName.

Referenced by LLFloaterBuyLandUI::startTransaction(), and LLCurrencyUIManager::Impl::startTransaction().

const std::vector<std::string>& getLoginURIs (  ) 

Definition at line 6374 of file viewer.cpp.

References gLoginURIs, gUserServerChoice, gUserServerDomainName, and LLSRV::rewriteURI().

Referenced by idle_startup().

void idle (  ) 

Definition at line 3678 of file viewer.cpp.

References LLFrameStats::addFrameData(), LLFrameStats::AGENT_MISC, AGENT_UPDATES_PER_SECOND, app_force_quit(), LLFrameStats::AUDIO, audio_update_listener(), audio_update_volume(), audio_update_wind(), LLAgent::autoPilot(), LLCallbackList::callFunctions(), LLFrameStats::CLEAN_DEAD, LLViewerObjectList::cleanDeadObjects(), LLDrawable::cleanupDeadDrawables(), LLHUDManager::cleanupEffects(), LLAgent::controlFlagsDirty(), LLSelectMgr::deselectAllIfTooFar(), f, LLFastTimer::FTM_AUDIO_UPDATE, LLFastTimer::FTM_CLEANUP, LLFastTimer::FTM_IMAGE_UPDATE, LLFastTimer::FTM_LOD_UPDATE, LLFastTimer::FTM_NETWORK, LLFastTimer::FTM_OBJECTLIST_UPDATE, LLFastTimer::FTM_REGION_UPDATE, LLFastTimer::FTM_RESET_DRAWORDER, LLFastTimer::FTM_UPDATE_SKY, gAgent, gAgentPilot, gAudiop, gBumpImageList, gCamera, gDisconnected, LLViewerCamera::getAngularVelocityStat(), LLWind::getAverage(), LLAgent::getControlFlags(), LLViewerWindow::getCurrentMouse(), LLCloudLayer::getDensityRegion(), LLTimer::getElapsedTimeAndResetF32(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLStat::getMean(), LLAgent::getPositionGlobal(), LLWorld::getSpaceTimeUSec(), LLStartUp::getStartupState(), LLWind::getVelocity(), LLViewerCamera::getVelocityStat(), gEventNotifier, gFloaterAvatarList, gFloaterEventLog, gFrameCount, gFrameStats, gGestureManager, gHaveSavedSnapshot, gHUDManager, gIdleCallbacks, gImageList, gLogoutRequestSent, gNoRender, gObjectList, gPipeline, gQuitAfterSeconds, gQuitRequested, gRenderStartTime, gRotateRight, gSelectMgr, gSky, gTrustNet, gViewerWindow, gVLManager, gWindVec, gWorldp, LLViewerWindow::handlePerFrameHover(), LLAudioEngine::idle(), idle_afk_check(), LLFrameStats::IDLE_NETWORK, idle_network(), idle_shutdown(), idle_startup(), LLFrameStats::IMAGE_UPDATE, llclamp(), llinfos, LLViewerRegion::mCloudLayer, LLViewerObjectList::mNumDeadObjectUpdates, LLViewerObjectList::mNumUnknownKills, LLViewerObjectList::mNumUnknownUpdates, LLAgent::moveYaw(), LLViewerRegion::mWind, LLCoord::mX, LLCoord::mY, NULL, LLFrameStats::OBJECT_UPDATE, LLTrustNet::processRequests(), LLSky::propagateHeavenlyBodies(), request_initial_instant_messages(), LLFrameTimer::reset(), reset_statistics(), LLPipeline::resetDrawOrders(), LLWorld::resolveRegionGlobal(), SEC_TO_MICROSEC, send_agent_update(), send_stats(), LLHUDManager::sendEffects(), LLSky::setCloudDensityAtAgent(), LLWorld::setSpaceTimeUSec(), LLVector3::setVec(), LLSky::setWind(), LLViewerJoystick::sOverrideCamera, LLFrameStats::start(), STATE_STARTED, stop_glerror, t, TRUE, LLVLManager::unpackData(), LLEventNotifier::update(), LLSelectMgr::update(), LLGestureManager::update(), LLViewerObjectList::update(), LLFrameStats::UPDATE_EFFECTS, LLFrameStats::UPDATE_MOVE, LLFrameStats::UPDATE_PARTICLES, update_statistics(), LLAgent::updateAgentPosition(), LLControlBase::updateAllListeners(), LLViewerObjectList::updateApparentAngles(), LLFloaterAvatarList::updateAvatarList(), LLAgent::updateCamera(), LLViewerJoystick::updateCamera(), LLEventTimer::updateClass(), LLMortician::updateClass(), LLViewerImage::updateClass(), LLWorld::updateClouds(), LLViewerWindow::updateDebugText(), LLSelectMgr::updateEffects(), LLFrameTimer::updateFrameTime(), LLBumpImageList::updateImages(), LLViewerImageList::updateImages(), LLCriticalDamp::updateInterpolants(), LLPipeline::updateMove(), LLWorld::updateParticles(), LLWorld::updateRegions(), LLSky::updateSky(), LLAgentPilot::updateTarget(), LLWorld::updateVisibilities(), and LLFloaterEventLog::updateWindow().

Referenced by main_loop(), and save_final_snapshot().

void idle_afk_check (  ) 

Definition at line 3642 of file viewer.cpp.

References gAFKTimeout, gAgent, gAllowIdleAFK, gAwayTriggerTimer, LLFrameTimer::getElapsedTimeF32(), and LLAgent::setAFK().

Referenced by idle().

void idle_network (  ) 

Definition at line 3549 of file viewer.cpp.

References LLStat::addValue(), CHECK_MESSAGES_DEFAULT_MAX_TIME, LLMessageSystem::checkAllMessages(), LLAssetStorage::checkForTimeouts(), FALSE, LLFastTimer::FTM_IDLE_NETWORK, gAgent, gAssetStorage, gCacheName, gDoDisconnect, LLControlGroup::getBOOL(), LLTimer::getElapsedTimeF32(), gFrameCount, gMessageSystem, gObjectList, gPrintMessagesThisFrame, gSavedSettings, gServicePump, gViewerThrottle, gXferManager, llinfos, MESSAGE_MAX_PER_FRAME, LLViewerObjectList::mNumNewObjects, LLViewerObjectList::mNumNewObjectsStat, LLMessageSystem::processAcks(), LLCacheName::processPending(), LLAgent::resetControlFlags(), LLXferManager::retransmitUnackedPackets(), S32, stop_glerror, t, and LLViewerThrottle::updateDynamicThrottle().

Referenced by idle().

void idle_shutdown (  ) 

Definition at line 3325 of file viewer.cpp.

References LLModalDialog::activeCount(), LLFloaterView::allChildrenClosed(), app_force_quit(), LLIMMgr::disconnectAllSessions(), f, gAssetStorage, LLTimer::getElapsedTimeF32(), LLAssetStorage::getNumPendingUploads(), gFloaterView, gIMMgr, gLogoutMaxTime, gLogoutRequestSent, gLogoutTimer, gViewerWindow, llmax(), MAX_STRING, NULL, S32, save_final_snapshot(), send_logout_request(), LLViewerWindow::setProgressPercent(), LLViewerWindow::setProgressString(), LLViewerWindow::setShowProgress(), and TRUE.

Referenced by idle().

void init_audio (  ) 

Definition at line 4113 of file viewer.cpp.

References audio_update_volume(), gAgent, gAudiop, gCamera, LLCoordFrame::getAtAxis(), LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLControlGroup::getString(), LLCoordFrame::getUpAxis(), gPreloadSounds, gSavedSettings, llwarns, LLAudioEngine::preloadSound(), LLAudioEngine::setListener(), LLVector3::setVec(), and LLVector3::zero.

Referenced by idle_startup().

BOOL init_cache (  ) 

Definition at line 2766 of file viewer.cpp.

References LLDir::deleteFilesInDir(), FALSE, gDirUtilp, LLControlGroup::getBOOL(), LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LLDir::getNextFileInDir(), LLControlGroup::getS32(), LLControlGroup::getString(), LLControlGroup::getU32(), LLVFS::getValidState(), gMultipleViewersOK, gPurgeCache, gSavedSettings, gSecondInstance, gStaticVFS, gTextureCache, gVFS, LLTextureCache::initCache(), LLVFile::initClass(), LLVFS::isValid(), LL_MAX_PATH, LL_PATH_APP_SETTINGS, LL_PATH_CACHE, llinfos, llmin(), llwarns, mask, NULL, purge_cache(), LLFile::remove(), LLFile::rename(), s, S32, LLControlGroup::setBOOL(), LLDir::setCacheDir(), LLControlGroup::setS32(), LLControlGroup::setString(), LLControlGroup::setU32(), LLFile::stat(), TRUE, LLSplashScreen::update(), VFS_DATA_FILE_BASE, VFS_INDEX_FILE_BASE, and VFSVALID_BAD_CORRUPT.

Referenced by main().

void init_crash_handler (  ) 

Definition at line 2210 of file viewer.cpp.

References catch_signals(), gCrashCallback, and viewer_crash_callback().

Referenced by main().

void init_logging (  ) 

Definition at line 2224 of file viewer.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_LOGS, LLError::logToFile(), LLFile::remove(), and LLFile::rename().

Referenced by main().

void init_marker_file (  ) 

Definition at line 2120 of file viewer.cpp.

References LLFile::_fsopen(), LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), gLastExecFroze, LL_PATH_LOGS, llendl, llinfos, NULL, LLFile::remove(), and TRUE.

Referenced by main().

void load_name_cache (  ) 

Definition at line 5789 of file viewer.cpp.

References LLFile::fopen(), gCacheName, gDirUtilp, LLDir::getExpandedFilename(), LLCacheName::importFile(), and LL_PATH_CACHE.

Referenced by idle_startup().

void load_region_name_cache (  ) 

Definition at line 5817 of file viewer.cpp.

References gCacheName, gDirUtilp, LLDir::getExpandedFilename(), gRegionNameCache, LLRegionNameCache::importFile(), LL_PATH_APP_SETTINGS, and LL_PATH_CACHE.

Referenced by idle_startup().

void login_alert_done ( S32  option,
void user_data 
)

Definition at line 5836 of file viewer.cpp.

References LLPanelLogin::giveFocus().

Referenced by idle_startup(), and LLFloaterTOS::onCancel().

int main ( int  argc,
char **  argv 
)

Definition at line 811 of file viewer.cpp.

References _read_file_into_string(), LLXmlTree::addAttributeString(), another_instance_running(), LLControlGroup::applyOverrides(), bind_keyboard_functions(), cleanup_app(), LLFeatureManager::cleanupFeatureTables(), CRASH_SETTINGS_FILE, create_console(), declare_settings(), DEFAULT_SETTINGS_FILE, DIRECTX_9_URL, errorCallback(), FALSE, LLMD5::finalize(), fixup_settings(), LLFile::fopen(), gArgs, gChannelName, gColors, gCommandLineForcedSettings, gCommandLineSettings, gCrashSettings, gCurrentVersion, gDirUtilp, gDisabledMessage, gDisableVoice, gDXHardware, get_serial_number(), LLDir::getAppRODataDir(), LLControlGroup::getBOOL(), LLXmlTreeNode::getChildByName(), LLXmlTreeNode::getContents(), LLDir::getDirDelimiter(), LLTimer::getElapsedTimeF32(), LLImageJ2C::getEngineInfo(), LLDir::getExecutablePathAndName(), LLDir::getExpandedFilename(), LLControlGroup::getF32(), LLXmlTreeNode::getFastAttributeBOOL(), LLGLManager::getGLInfoString(), LLDXHardware::getInfo(), LLUUID::getNodeID(), LLXmlTree::getRoot(), LLControlGroup::getS32(), LLDir::getSkinDir(), LLControlGroup::getString(), LLURLSimString::getURL(), LLDXHardware::getVRAM(), LLControlGroup::getWarning(), gFeatureManagerp, gFrameCount, gGLManager, gHideLinks, gIconResource, gIgnorePixelDepth, gImageDecodeThread, gImageList, gInProductionGrid, gLastExecFroze, gLastRunVersion, gLaunchFileOnQuit, gMACAddress, gMultipleViewersOK, gNoRender, gNumSessions, gOldSettingsFileName, gProbeHardware, gRenderStartTime, gSavedSettings, gSecondInstance, gSecondLife, gSerialNumber, gSettingsFileName, gSimFrames, gSimLastTime, gStartTime, gSysCPU, gTextureCache, gTextureFetch, gUICtrlFactory, gUseConsole, gUserServerChoice, gUserServerDomainName, gUserServerName, gViewerArt, gViewerDigest, gViewerKeyboard, gViewerStats, gViewerWindow, gWindowTitle, LLCPUInfo::hasAltivec(), LLSplashScreen::hide(), i, IDI_LL_ICON, init_cache(), init_crash_handler(), init_logging(), init_marker_file(), LLDir::initAppDirs(), LLMediaEngine::initClass(), LLUI::initClass(), LLVolumeMgr::initClass(), LLImageWorker::initClass(), LLLFSThread::initClass(), LLVFSThread::initClass(), LLCommon::initClass(), LLFeatureManager::initCPUFeatureMasks(), LLError::initForApplication(), j, LEGACY_DEFAULT_SETTINGS_FILE, LL_PATH_APP_SETTINGS, LL_PATH_SKINS, LL_PATH_TOP_SKIN, LL_PATH_USER_SETTINGS, LL_VERSION_BUILD, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VERSION_REVISION, llclamp(), llendflush, llendl, llerrs, llformat(), llinfos, llwarns, LLViewerKeyboard::loadBindings(), LLFeatureManager::loadFeatureTables(), LLControlGroup::loadFromFile(), LLControlGroup::loadFromFileLegacy(), LLWeb::loadURLExternal(), LOOPBACK_ADDRESS_STRING, main_loop(), MAX_STRING, LLUUID::mData, LLGLManager::mHasMultitexture, ms_sleep(), LLMemType::MTYPE_STARTUP, LLGLManager::mVRAM, NULL, LLImageJ2C::openDSO(), OSBTN_NO, OSBTN_YES, OSMB_OK, OSMB_YESNO, OSMessageBox(), LLURLSimString::parse(), parse_args(), LLAlertDialog::parseAlerts(), LLXmlTree::parseFile(), LLNotifyBox::parseNotify(), LLGroupMgr::parseRoleActions(), LLAgent::parseTeleportMessages(), LLMD5::raw_digest(), remove_marker_file(), S32, saved_settings_to_globals(), LLControlGroup::saveToFile(), send_url_to_other_instance(), LLControlGroup::setBOOL(), LLError::setFatalFunction(), LLError::setPrintLocation(), LLControlGroup::setS32(), LLControlGroup::setString(), LLURLSimString::setString(), LLWinDebug::setupExceptionHandler(), LLUICtrlFactory::setupPaths(), LLControlGroup::setWarning(), LLDXHardware::setWriteDebugFunc(), LLUI::sGLScaleFactor, LLSplashScreen::show(), LLStartUp::sSLURLCommand, LLUI::sWindow, sWindowClass, LLViewerWindow::toggleFullscreen(), totalTime(), TRUE, LLStringBase< char >::truncate(), TYPE_COL4U, ui_audio_callback(), UI_CURSOR_WAIT, LLMD5::update(), LLSplashScreen::update(), USERSERVER_ADITI, USERSERVER_AGNI, USERSERVER_COUNT, USERSERVER_DMZ, USERSERVER_DURGA, USERSERVER_GANGA, USERSERVER_NONE, USERSERVER_OTHER, USERSERVER_SHAKTI, USERSERVER_SIVA, USERSERVER_SOMA, USERSERVER_UMA, USERSERVER_VAAK, UserServerDefaultChoice, void, write_debug(), and write_system_info().

void main_loop (  ) 

Definition at line 1874 of file viewer.cpp.

References LLPumpIO::callback(), check_for_events(), disconnect_viewer(), display(), FALSE, LLFocusMgr::focusLocked(), LLFastTimer::FTM_FRAME, LLFastTimer::FTM_IDLE, LLFastTimer::FTM_SLEEP, gActiveChannelSpeakerMgr, gAPRPoolp, gDirUtilp, gDoDisconnect, LLViewerWindow::getActive(), LLFocusMgr::getAppHasFocus(), LLControlGroup::getBOOL(), LLDir::getCAFile(), LLTimer::getElapsedTimeF32(), LLTimer::getElapsedTimeF64(), LLWindow::getMinimized(), LLControlGroup::getS32(), LLViewerWindow::getShowProgress(), LLStartUp::getStartupState(), LLWindow::getVisible(), gFocusMgr, gFrameCount, gImageDecodeThread, gKeyboard, gLocalSpeakerMgr, gNoRender, gPeriodicSlowFrame, gQuit, gRandomizeFramerate, gSavedSettings, gServicePump, gTextureCache, gTextureFetch, gViewerWindow, gYieldMS, gYieldTime, idle(), LLVoiceClient::init(), LLVoiceChannel::initClass(), llclamp(), llendflush, llendl, llinfos, llmin(), ms_sleep(), LLMemType::MTYPE_MAIN, LLViewerWindow::mWindow, NULL, LLThread::pause(), LLCurl::process(), LLPumpIO::pump(), LLTimer::reset(), LLFastTimer::reset(), S32, save_final_snapshot(), LLViewerJoystick::scanJoystick(), LLKeyboard::scanKeyboard(), LLHTTPClient::setCABundle(), LLHTTPClient::setPump(), STATE_STARTED, t, LLTextureFetch::update(), LLWorkerThread::update(), LLTextureCache::update(), LLFloaterSnapshot::update(), LLLFSThread::updateClass(), LLVFSThread::updateClass(), and llLCD::UpdateDisplay().

Referenced by main().

F32 mouse_x_from_center ( S32  x  ) 

Definition at line 4099 of file viewer.cpp.

References f, LLViewerWindow::getWindowWidth(), and gViewerWindow.

Referenced by handle_fullscreen_debug(), and LLAgent::updateLookAt().

F32 mouse_y_from_center ( S32  y  ) 

Definition at line 4105 of file viewer.cpp.

References f, LLViewerWindow::getWindowHeight(), and gViewerWindow.

Referenced by handle_fullscreen_debug(), and LLAgent::updateLookAt().

void output_statistics ( void  ) 

Definition at line 5032 of file viewer.cpp.

References LLVOAvatar::dumpBakedStatus(), LLTexStaticImageList::dumpByteCount(), LLTexLayerParamAlpha::dumpCacheByteCount(), LLVOAvatar::dumpScratchTextureByteCount(), LLTexLayerSetBuffer::dumpTotalByteCount(), LLVOAvatar::dumpTotalLocalTextureByteCount(), LLPipeline::getLightCount(), LLViewerImageList::getNumImages(), LLViewerObjectList::getNumObjects(), LLViewerObject::getNumZombieObjects(), LLViewerObjectList::getObject(), LLViewerObjectList::getOrphanCount(), gImageList, gObjectList, gPipeline, gTexStaticImageList, llinfos, llwarns, LLViewerObjectList::mNumDeadObjects, NULL, LLPrimitive::pCodeToString(), S32, LLImageGL::sBoundTextureMemory, LLImageFormatted::sGlobalFormattedMemory, LLImageRaw::sGlobalRawMemory, and LLImageGL::sGlobalTextureMemory.

Referenced by init_debug_ui_menu().

int parse_args ( int  argc,
char **  argv 
)

Definition at line 324 of file mac_updater.cpp.

References gIsSilent, gProductName, gProgramName, gUpdateURL, and j.

void print_agent_nvpairs ( void  ) 

Definition at line 5000 of file viewer.cpp.

References LLViewerObjectList::findObject(), gAgent, gAgentID, LLAgent::getCameraPositionGlobal(), gObjectList, llinfos, and LLViewerObject::printNameValuePairs().

Referenced by init_debug_ui_menu().

void process_keystrokes_async (  ) 

Definition at line 2058 of file viewer.cpp.

References LLFocusMgr::focusLocked(), LLViewerWindow::getActive(), LLWindow::getMinimized(), LLViewerWindow::getShowProgress(), LLStartUp::getStartupState(), LLWindow::getVisible(), gFocusMgr, gKeyboard, gViewerWindow, LLViewerWindow::mWindow, NULL, LLKeyboard::scanKeyboard(), and STATE_STARTED.

Referenced by display().

void purge_cache (  ) 

Definition at line 5435 of file viewer.cpp.

References LLDir::deleteFilesInDir(), gDirUtilp, LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), gTextureCache, LL_PATH_CACHE, llinfos, mask, and LLTextureCache::purgeCache().

Referenced by init_cache().

BOOL raycast_for_new_obj_pos ( S32  x,
S32  y,
LLViewerObject **  hit_obj,
S32 hit_face,
BOOL b_hit_land,
LLVector3 ray_start_region,
LLVector3 ray_end_region,
LLViewerRegion **  region 
)

Definition at line 4310 of file viewer.cpp.

References FALSE, LLViewerObjectList::findObject(), gAgent, gCamera, LLCoordFrame::getAtAxis(), LLAgent::getCameraPositionGlobal(), LLControlGroup::getF32(), LLCamera::getNear(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), gLastHitNonFloraObjectFace, gLastHitNonFloraObjectID, gLastHitNonFloraPosGlobal, gObjectList, gSavedSettings, gViewerWindow, gWorldp, LLViewerWindow::hitObjectOrLandGlobalImmediate(), LLVector3d::isExactlyZero(), llwarns, LLViewerWindow::mouseDirectionGlobal(), NULL, LLVector3d::setVec(), and TRUE.

Referenced by add_duplicate(), and add_object().

void release_signals (  ) 

Definition at line 5417 of file viewer.cpp.

Referenced by disconnect_viewer(), and signal_handlers().

void remove_cache_files ( const char *  file_mask  ) 

Definition at line 5913 of file viewer.cpp.

References LLDir::deleteFilesInDir(), gDirUtilp, LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LL_MAX_PATH, LL_PATH_CACHE, and mask.

Referenced by cleanup_app().

void remove_marker_file (  ) 

Definition at line 2105 of file viewer.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), ll_apr_file_remove(), LL_PATH_LOGS, llendl, llinfos, and NULL.

Referenced by app_force_exit(), cleanup_app(), main(), update_dialog_callback(), and viewer_crash_callback().

void request_initial_instant_messages (  ) 

Definition at line 3650 of file viewer.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_RetrieveInstantMessages, _PREHASH_SessionID, FALSE, gAgent, LLAgent::getAvatarObject(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, gMuteListp, LLMuteList::isLoaded(), LLMessageSystem::newMessageFast(), LLAgent::sendReliableMessage(), and TRUE.

Referenced by idle().

void reset_statistics (  ) 

Definition at line 5020 of file viewer.cpp.

References LLStat::addValue(), f, gPipeline, LLPipeline::resetFrameStats(), LLSurface::sTexelsUpdated, LLSurface::sTexelsUpdatedPerSecStat, and LLSurface::sTextureUpdateTime.

Referenced by idle().

void resetURIs (  ) 

Definition at line 6368 of file viewer.cpp.

References gHelperURI, and gLoginURIs.

Referenced by idle_startup().

void save_avatar ( void  ) 

Definition at line 6062 of file viewer.cpp.

References LLFloaterSaveAvatar::show().

void save_final_snapshot ( void  ) 

Definition at line 3231 of file viewer.cpp.

References LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLAgent::changeCameraToThirdPerson(), FALSE, gAgent, gDirUtilp, LLDir::getDirDelimiter(), LLDir::getLindenUserDir(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gHaveSavedSnapshot, gNoRender, gSavedSettings, gViewerWindow, idle(), LLViewerWindow::saveSnapshot(), SCREEN_LAST_FILENAME, LLControlGroup::setBOOL(), LLViewerWindow::setCursor(), LLControlGroup::setVector3d(), TRUE, and UI_CURSOR_WAIT.

Referenced by idle_shutdown(), and main_loop().

void save_name_cache (  ) 

Definition at line 5803 of file viewer.cpp.

References LLCacheName::exportFile(), LLFile::fopen(), gCacheName, gDirUtilp, LLDir::getExpandedFilename(), and LL_PATH_CACHE.

Referenced by disconnect_viewer().

void save_region_name_cache (  ) 

Definition at line 5826 of file viewer.cpp.

References LLRegionNameCache::exportFile(), gCacheName, gDirUtilp, LLDir::getExpandedFilename(), gRegionNameCache, and LL_PATH_CACHE.

Referenced by disconnect_viewer().

void saved_settings_to_globals (  ) 

Definition at line 4796 of file viewer.cpp.

References LLObservable::addListener(), BTN_HEIGHT, BTN_HEIGHT_SMALL, CRASH_BEHAVIOR_SETTING, f, FALSE, gAFKTimeout, gAgent, gAgentPilot, gAllowIdleAFK, gCrashBehavior, gCrashSettings, gDebugWindowProc, LLControlGroup::getBOOL(), LLControlGroup::getControl(), LLControlGroup::getF32(), LLControlGroup::getS32(), LLControlGroup::getU32(), gFrameStats, gHandleKeysAsync, gInvertMouse, gMapScale, gMiniMapScale, gMouseSensitivity, gSavedSettings, gShowObjectUpdates, gSysCPU, LLCPUInfo::hasAltivec(), LLCPUInfo::hasSSE(), LLCPUInfo::hasSSE2(), LLBUTTON_H_PAD, LLBUTTON_V_PAD, LLCOMBOBOX_HEIGHT, LLCOMBOBOX_WIDTH, llmax(), MENU_BAR_HEIGHT, MENU_BAR_WIDTH, LLAgent::mHideGroupTitle, LLAgentPilot::mNumRuns, LLAgentPilot::mQuitAfterRuns, LLFolderView::sAutoOpenTime, LLVOVolume::sDistanceFactor, LLControlGroup::setBOOL(), LLSurface::setTextureSize(), settings_setup_listeners(), LLFrameStats::setTrackStats(), LLControlGroup::setU32(), LLImageGL::sGlobalUseAnisotropic, LLToolBar::sInventoryAutoOpenTime, LLVOAvatar::sLODFactor, LLVOVolume::sLODFactor, LLVOAvatar::sMaxVisible, LLVOSky::sNighttimeBrightness, LLSelectMgr::sRectSelectInclusive, LLSelectMgr::sRenderHiddenSelections, LLSelectMgr::sRenderLightRadius, LLHoverView::sShowHoverTips, STATUS_BAR_HEIGHT, LLVOTree::sTreeFactor, LLVolumeImplFlexible::sUpdateFactor, LLVOAvatar::sVisibleInFirstPerson, TRUE, update_vector_performances(), vector_processor_listener, vectorization_enable_listener, and vectorize_skin_listener.

Referenced by main().

void send_logout_request (  ) 

Definition at line 5960 of file viewer.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_LogoutRequest, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gLogoutMaxTime, gLogoutRequestSent, gLogoutTimer, gMessageSystem, gVoiceClient, LLVoiceClient::leaveChannel(), LOGOUT_REQUEST_TIME, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLTimer::reset(), LLAgent::sendReliableMessage(), and TRUE.

Referenced by idle_shutdown().

void send_stats (  ) 

Definition at line 5250 of file viewer.cpp.

References LLViewerStats::addToMessage(), gAgent, gAgentSessionID, gCurrentVersion, LLViewerRegion::getCapability(), LLCPUInfo::getCPUString(), getCurrentRSS(), LLAgent::getDistanceTraveled(), LLFrameTimer::getElapsedSeconds(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLFeatureManager::getGPUClass(), LLFeatureManager::getGPUString(), LLOSInfo::getOSString(), LLMemoryInfo::getPhysicalMemoryKB(), LLAgent::getRegion(), LLAgent::getRegionsVisited(), LLControlGroup::getString(), gFeatureManagerp, gForegroundFrameCount, gForegroundTime, gFrameCount, gGLManager, gMessageSystem, gNoRender, gRenderStartTime, gSavedSettings, gSimFrames, gSimLastTime, gSysCPU, gSysMemory, gSysOS, gTotalObjectBytes, gTotalTextureBytes, gViewerStats, llformat(), llwarns, LLMessageSystem::mCompressedBytesIn, LLMessageSystem::mCompressedBytesOut, LLMessageSystem::mCompressedPacketsIn, LLMessageSystem::mCompressedPacketsOut, LLGLManager::mDriverVersionVendorString, LLMessageSystem::mDroppedPackets, LLMessageSystem::mFailedResendPackets, LLGLManager::mGLVendorShort, LLMessageSystem::mInvalidOnCircuitPackets, LLMessageSystem::mOffCircuitPackets, LLMessageSystem::mPacketsIn, LLMessageSystem::mPacketsOut, LLMessageSystem::mResentPackets, LLMessageSystem::mSendPacketFailureCount, LLMessageSystem::mTotalBytesIn, LLMessageSystem::mTotalBytesOut, LLMessageSystem::mUncompressedBytesIn, LLMessageSystem::mUncompressedBytesOut, LLHTTPClient::post(), S32, and LLVOAvatar::sNumVisibleAvatars.

Referenced by app_request_quit(), and idle().

bool send_url_to_other_instance ( const std::string &  url  ) 

Definition at line 1790 of file viewer.cpp.

References gWindowTitle, lldebugs, llendl, NULL, S32, and sWindowClass.

Referenced by main().

void signal_handlers ( S32  s  ) 

Definition at line 5353 of file viewer.cpp.

References app_force_quit(), gCrashCallback, llwarns, NULL, and release_signals().

Referenced by catch_signals().

void ui_audio_callback ( const LLUUID uuid  ) 

Definition at line 654 of file viewer.cpp.

References gAgent, gAudiop, LLControlGroup::getF32(), LLAgent::getID(), gSavedSettings, and LLAudioEngine::triggerSound().

Referenced by main().

void update_statistics ( U32  frame_count  ) 

Definition at line 3419 of file viewer.cpp.

References LLStat::addValue(), CAMERA_MODE_CUSTOMIZE_AVATAR, CAMERA_MODE_MOUSELOOK, llLCD::Enabled(), f, LLCircuit::findCircuit(), LLFastTimer::FTM_FRAME, LLFastTimer::FTM_IDLE, LLFastTimer::FTM_IMAGE_UPDATE, LLFastTimer::FTM_NETWORK, LLFastTimer::FTM_REBUILD, LLFastTimer::FTM_RENDER_GEOMETRY, gAgent, gDebugTimers, gDebugView, LLFocusMgr::getAppHasFocus(), LLControlGroup::getBOOL(), LLAgent::getCameraMode(), LLVLManager::getCloudBits(), LLControlGroup::getF32(), LLViewerRegion::getHost(), LLVLManager::getLandBits(), LLCircuitData::getPingDelay(), LLAgent::getRegion(), LLControlGroup::getS32(), LLFastTimerView::getTime(), LLVLManager::getTotalBytes(), LLTransferManager::getTransferBitsIn(), LLVFile::getVFSThread(), LLView::getVisible(), LLVLManager::getWindBits(), gFloaterTools, gFocusMgr, gFrameIntervalSeconds, gMessageSystem, gSavedSettings, gSimPingCount, gTotalObjectBytes, gTotalTextureBytes, gTransferManager, gViewerStats, gVLManager, gWorldp, LLViewerStats::incStat(), LLTCT_ASSET, LLViewerStats::mAssetKBitStat, LLMessageSystem::mCircuitInfo, LLDebugView::mFastTimerView, LLViewerStats::mFPSStat, LLViewerStats::mLayersKBitStat, LLViewerStats::mObjectKBitStat, LLViewerStats::mSimPingStat, LLViewerStats::mTextureKBitStat, LLViewerStats::mTexturePacketsStat, LLViewerStats::mUserserverPingStat, LLViewerStats::mVFSPendingOperations, LLWorld::requestCacheMisses(), LLVLManager::resetBitCounts(), LLTransferManager::resetTransferBitsIn(), S32, LLViewerStats::setStat(), LLVOAvatar::sNumVisibleAvatars, LLViewerStats::ST_AVATAR_EDIT_SECONDS, LLViewerStats::ST_CHAT_BUBBLES, LLViewerStats::ST_DRAW_DIST, LLViewerStats::ST_ENABLE_VBO, LLViewerStats::ST_FRAME_SECS, LLViewerStats::ST_IMAGE_SECS, LLViewerStats::ST_LIBXUL_WIDGET_USED, LLViewerStats::ST_LIGHTING_DETAIL, LLViewerStats::ST_LOGITECH_LCD, LLViewerStats::ST_MOUSELOOK_SECONDS, LLViewerStats::ST_NETWORK_SECS, LLViewerStats::ST_REBUILD_SECS, LLViewerStats::ST_RENDER_SECS, LLViewerStats::ST_SHADER_AVATAR, LLViewerStats::ST_SHADER_ENVIRONMENT, LLViewerStats::ST_SHADER_OBJECTS, LLViewerStats::ST_TOOLBOX_SECONDS, LLViewerStats::ST_UPDATE_SECS, LLViewerStats::ST_VISIBLE_AVATARS, LLViewerImageList::sTextureBits, LLViewerImageList::sTexturePackets, and LLWorld::updateNetStats().

Referenced by idle().

void update_vector_performances ( void   ) 

Definition at line 4725 of file viewer.cpp.

References llinfos, LLViewerJointMesh::sUpdateGeometryFunc, LLViewerJointMesh::updateGeometryOriginal(), LLViewerJointMesh::updateGeometrySSE(), LLViewerJointMesh::updateGeometrySSE2(), and LLViewerJointMesh::updateGeometryVectorized().

Referenced by LLVectorProcessorListener::handleEvent(), LLVectorizeSkinListener::handleEvent(), LLVectorizationEnableListener::handleEvent(), and saved_settings_to_globals().

void user_logout (  ) 

Definition at line 3214 of file viewer.cpp.

References FALSE, gDoneLogout, gMessageSystem, gSavedSettings, LLControlGroup::setBOOL(), and TRUE.

Referenced by disconnect_viewer().

void uuid_table_request_file_callback ( void **  user_data,
S32  result,
LLExtStat  ext_status 
)

void viewer_crash_callback (  ) 

Definition at line 2614 of file viewer.cpp.

References being_debugged(), close_debug(), CRASH_BEHAVIOR_ALWAYS_SEND, CRASH_BEHAVIOR_ASK, CRASH_BEHAVIOR_NEVER_SEND, FALSE, gCrashBehavior, gDirUtilp, LLDir::getAppRODataDir(), LLMessageSystem::getCircuitInfoString(), LLDir::getCurPath(), LLDir::getDirDelimiter(), LLDir::getExecutablePathAndName(), LLDir::getExpandedFilename(), LLWorld::getInfoString(), gMessageSystem, gReportedCrash, gSecondLife, gUserServerName, gWorldp, LL_PATH_LOGS, llofstream, llwarns, LLError::logToFile(), NULL, remove_marker_file(), LLMessageSystem::stopLogging(), LLMessageSystem::summarizeLogs(), TRUE, and write_debug().

Referenced by init_crash_handler().

void write_debug ( const std::string &  str  ) 

void write_debug ( const char *  str  ) 

void write_system_info (  ) 

Definition at line 2248 of file viewer.cpp.

References LLCPUInfo::getCPUString(), LLOSInfo::getOSString(), LLMemoryInfo::getPhysicalMemoryKB(), gSecondLife, gSysCPU, gSysMemory, gSysOS, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, llendl, llformat(), llinfos, LLError::logFileName(), and write_debug().

Referenced by main().


Variable Documentation

F32 CheckMessagesMaxTime = CHECK_MESSAGES_DEFAULT_MAX_TIME [static]

Definition at line 3546 of file viewer.cpp.

const U32 COLLISION_LIST_DEPTH = 300

Definition at line 313 of file viewer.cpp.

const F32 DEFAULT_AFK_TIMEOUT = 5.f * 60.f

Definition at line 316 of file viewer.cpp.

const LLVector3 DEFAULT_OBJECT_SCALE(0.5f, 0.5f, 0.5f)

Referenced by add_object().

const char* DEFAULT_SETTINGS_FILE = "settings_dale.xml"

Definition at line 400 of file viewer.cpp.

Referenced by idle_startup(), and main().

BOOL gAcceptCriticalMessage = FALSE

Definition at line 557 of file viewer.cpp.

Referenced by idle_startup(), and LLFloaterTOS::onContinue().

BOOL gAcceptTOS = FALSE

Definition at line 556 of file viewer.cpp.

Referenced by idle_startup(), and LLFloaterTOS::onContinue().

F32 gAFKTimeout = DEFAULT_AFK_TIMEOUT

Definition at line 408 of file viewer.cpp.

Referenced by LLAFKTimeoutListener::handleEvent(), idle_afk_check(), and saved_settings_to_globals().

LLAgent gAgent

Definition at line 366 of file viewer.cpp.

BOOL gAgentMovementCompleted = FALSE

Definition at line 307 of file viewer.cpp.

Referenced by idle_startup(), and process_agent_movement_complete().

BOOL gAllowIdleAFK = TRUE

Definition at line 407 of file viewer.cpp.

Referenced by cleanup_saved_settings(), LLViewerWindow::handleActivate(), idle_afk_check(), init_debug_avatar_menu(), and saved_settings_to_globals().

LLString gArgs

Definition at line 387 of file viewer.cpp.

Referenced by main().

BOOL gAutoLogin = FALSE

Definition at line 397 of file viewer.cpp.

Referenced by idle_startup().

F32 gAveLandCompression = 0.f

Definition at line 3399 of file viewer.cpp.

F32 gAveWaterCompression = 0.f

Definition at line 3399 of file viewer.cpp.

F32 gAvgSimPing = 0.f

Definition at line 3412 of file viewer.cpp.

BOOL gbCapturing

Definition at line 241 of file llviewerwindow.cpp.

Referenced by LLViewerWindow::saveMovieNumbered().

F32 gBestLandCompression = 1.f

Definition at line 3400 of file viewer.cpp.

F32 gBestWaterCompression = 1.f

Definition at line 3400 of file viewer.cpp.

std::string gChannelName = LL_CHANNEL

Definition at line 559 of file viewer.cpp.

Referenced by LLUserAuth::authenticate(), idle_startup(), LLFloaterAbout::LLFloaterAbout(), LLPanelLogin::LLPanelLogin(), main(), and update_dialog_callback().

LLString gCmdLineFirstName

Definition at line 566 of file viewer.cpp.

Referenced by idle_startup().

LLString gCmdLineLastName

Definition at line 567 of file viewer.cpp.

Referenced by idle_startup().

LLString gCmdLinePassword

Definition at line 568 of file viewer.cpp.

Referenced by idle_startup().

std::map<std::string, std::string> gCommandLineForcedSettings

Definition at line 570 of file viewer.cpp.

Referenced by main().

std::map<std::string, std::string> gCommandLineSettings

Definition at line 569 of file viewer.cpp.

Referenced by main().

S32 gCrashBehavior = CRASH_BEHAVIOR_ASK

Definition at line 291 of file viewer.cpp.

Referenced by LLPanelGeneral::cancel(), cleanup_saved_settings(), LLPanelGeneral::postBuild(), LLPanelGeneral::refresh(), saved_settings_to_globals(), set_crash_behavior(), and viewer_crash_callback().

void(*) gCrashCallback(void) = NULL

Definition at line 292 of file viewer.cpp.

Referenced by bad_network_handler(), init_crash_handler(), and signal_handlers().

FILE* gDebugFile = NULL

Definition at line 446 of file viewer.cpp.

Referenced by close_debug(), send_crash_report(), and write_debug().

std::map<S32,LLFrameTimer> gDebugTimers

Definition at line 449 of file viewer.cpp.

Referenced by LLDebugText::update(), and update_statistics().

LLString gDisabledMessage

Definition at line 340 of file viewer.cpp.

Referenced by idle_startup(), and main().

BOOL gDisableVoice = FALSE

Definition at line 385 of file viewer.cpp.

Referenced by LLPrefsVoice::draw(), main(), LLPrefsVoiceLogic::refresh(), LLVoiceClient::stateMachine(), LLFirstUse::useVoice(), and LLVoiceClient::voiceEnabled().

BOOL gDisconnected = FALSE

Definition at line 372 of file viewer.cpp.

Referenced by LLInventoryModel::backgroundFetch(), LLAgent::cameraZoomIn(), disconnect_viewer(), display(), handle_focus(), LLViewerWindow::handleMouseDown(), LLNetMap::handleToolTip(), idle(), render_disconnected_background(), render_ui_and_swap(), send_agent_update(), LLAgent::sendMessage(), LLAgent::sendReliableMessage(), LLInventoryView::showAgentInventory(), and LLVoiceClient::stateMachine().

LLPointer<LLImageGL> gDisconnectedImagep = NULL

Definition at line 575 of file viewer.cpp.

Referenced by cleanup_app(), and render_disconnected_background().

BOOL gDisplayCameraPos = FALSE

Definition at line 427 of file viewer.cpp.

Referenced by init_client_menu(), and LLDebugText::update().

BOOL gDisplayFOV = FALSE

Definition at line 430 of file viewer.cpp.

Referenced by init_client_menu(), and LLDebugText::update().

BOOL gDisplayNearestWater = FALSE

Definition at line 428 of file viewer.cpp.

BOOL gDisplayWindInfo = FALSE

Definition at line 426 of file viewer.cpp.

Referenced by init_client_menu(), and LLDebugText::update().

BOOL gDoDisconnect = FALSE

Definition at line 371 of file viewer.cpp.

Referenced by app_early_exit(), do_disconnect(), idle_network(), and main_loop().

BOOL gDoNearestWaterSearch = FALSE

Definition at line 429 of file viewer.cpp.

BOOL gDoneLogout = FALSE

Definition at line 394 of file viewer.cpp.

Referenced by user_logout().

U32 gForegroundFrameCount = 0

Definition at line 461 of file viewer.cpp.

Referenced by display(), and send_stats().

LLFrameTimer gForegroundTime

Definition at line 467 of file viewer.cpp.

Referenced by LLViewerWindow::handleFocus(), LLViewerWindow::handleFocusLost(), idle_startup(), and send_stats().

F32 gFPSClamped = 10.f

Definition at line 3403 of file viewer.cpp.

Referenced by LLAgent::autoPilot(), LLManipTranslate::handleHover(), LLToolGrab::handleHoverActive(), LLToolGrab::handleHoverInactive(), LLToolBrushLand::modifyLandAtPointGlobal(), LLAgent::updateCamera(), and LLVOAvatar::updateHeadOffset().

U32 gFrameCount = 0

Definition at line 460 of file viewer.cpp.

F32 gFrameDT = 0.f

Definition at line 3405 of file viewer.cpp.

F32 gFrameDTClamped = 0.f

Definition at line 3404 of file viewer.cpp.

F32 gFrameIntervalSeconds = 0.f

Definition at line 459 of file viewer.cpp.

Referenced by LLPipeline::calcNearbyLights(), LLFastTimerView::draw(), LLFloaterJoystick::draw(), LLViewerWindow::handlePerFrameHover(), idle_startup(), renderOctree(), LLPipeline::setupHWLights(), LLViewerObjectList::update(), update_statistics(), and LLViewerJoystick::updateCamera().

U64 gFrameTime = 0

Definition at line 457 of file viewer.cpp.

F32 gFrameTimeSeconds = 0.f

Definition at line 458 of file viewer.cpp.

BOOL gGodConnect = FALSE

Definition at line 550 of file viewer.cpp.

Referenced by idle_startup().

BOOL gHackGodmode = FALSE

Definition at line 360 of file viewer.cpp.

Referenced by check_toggle_hacked_godmode(), and handle_toggle_hacked_godmode().

BOOL gHandleKeysAsync = FALSE

Definition at line 297 of file viewer.cpp.

Referenced by cleanup_saved_settings(), display(), init_debug_ui_menu(), and saved_settings_to_globals().

BOOL gHaveSavedSnapshot = FALSE

Definition at line 308 of file viewer.cpp.

Referenced by display(), idle(), and save_final_snapshot().

std::string gHelperURI [static]

Definition at line 364 of file viewer.cpp.

Referenced by getHelperURI(), and resetURIs().

BOOL gHideLinks = FALSE

Definition at line 341 of file viewer.cpp.

Referenced by LLFloaterBuyCurrency::buyCurrency(), idle_startup(), LLPanelLogin::LLPanelLogin(), main(), LLPanelLogin::onClickNewAccount(), and update_dialog_callback().

BOOL gIgnorePixelDepth = FALSE

Definition at line 572 of file viewer.cpp.

Referenced by main().

LLWorkerThread* gImageDecodeThread = NULL

Definition at line 442 of file viewer.cpp.

Referenced by cleanup_app(), LLViewerImageList::decodeAllImages(), main(), main_loop(), LLViewerWindow::stopGL(), and update_texture_fetch().

BOOL gInitializationComplete = FALSE

Definition at line 396 of file viewer.cpp.

BOOL gInProductionGrid = FALSE

Definition at line 344 of file viewer.cpp.

Referenced by enable_save_into_inventory(), enable_take(), LLFloaterReporter::gatherReport(), LLToolsEnableTakeCopy::handleEvent(), LLObjectEnableDelete::handleEvent(), init_client_menu(), init_menus(), main(), LLViewerObject::permCopy(), LLViewerObject::permModify(), LLViewerObject::permMove(), LLViewerObject::permOwnerModify(), LLViewerObject::permTransfer(), LLViewerObject::permYouOwner(), and set_god_level().

LLUUID gInventoryLibraryOwner

Definition at line 561 of file viewer.cpp.

Referenced by disconnect_viewer(), and idle_startup().

LLUUID gInventoryLibraryRoot

Definition at line 562 of file viewer.cpp.

Referenced by LLFolderView::addFolder(), disconnect_viewer(), handle_take(), LLFolderViewItem::handleHover(), idle_startup(), and LLInventoryModel::startBackgroundFetch().

BOOL gInvertMouse = FALSE

Definition at line 410 of file viewer.cpp.

BOOL gLastExecFroze = FALSE

Definition at line 571 of file viewer.cpp.

Referenced by idle_startup(), init_marker_file(), and main().

LLString gLastVersionChannel

Definition at line 481 of file viewer.cpp.

LLString gLaunchFileOnQuit

Definition at line 393 of file viewer.cpp.

Referenced by app_force_quit(), and main().

std::vector<std::string> gLoginURIs

Definition at line 363 of file viewer.cpp.

Referenced by getLoginURIs(), and resetURIs().

BOOL gLogMessages = FALSE

Definition at line 554 of file viewer.cpp.

Referenced by idle_startup().

F32 gLogoutMaxTime = LOGOUT_REQUEST_TIME

Definition at line 416 of file viewer.cpp.

Referenced by display(), idle_shutdown(), and send_logout_request().

BOOL gLogoutRequestSent = FALSE

Definition at line 411 of file viewer.cpp.

LLTimer gLogoutTimer

Definition at line 412 of file viewer.cpp.

F32 gMapScale = 128.f

Definition at line 419 of file viewer.cpp.

Referenced by cleanup_saved_settings(), LLWorldMapView::draw(), LLWorldMapView::drawAgents(), LLWorldMapView::drawFrustum(), LLWorldMapView::LLWorldMapView(), LLFloaterWorldMap::postBuild(), saved_settings_to_globals(), LLWorldMapView::setScale(), LLWorldMapView::updateVisibleBlocks(), and LLWorldMapView::viewPosToGlobal().

FILE* gMarkerFile = NULL

Definition at line 2103 of file viewer.cpp.

F32 gMiniMapScale = 128.f

Definition at line 420 of file viewer.cpp.

Referenced by cleanup_saved_settings(), LLNetMap::createObjectImage(), LLNetMap::draw(), LLNetMap::handleScrollWheel(), LLNetMap::LLNetMap(), saved_settings_to_globals(), LLNetMap::setScale(), and LLNetMap::viewPosToGlobal().

F32 gMouseSensitivity = 3.f

Definition at line 409 of file viewer.cpp.

MovieMaker gMovieMaker

Definition at line 243 of file llviewerwindow.cpp.

Referenced by LLViewerWindow::saveMovieNumbered().

BOOL gMultipleViewersOK = TRUE

Definition at line 382 of file viewer.cpp.

Referenced by init_cache(), and main().

S32 gNumSessions = 0

Definition at line 405 of file viewer.cpp.

Referenced by main().

U32 gObjectBits = 0

Definition at line 3411 of file viewer.cpp.

LLString gOldSettingsFileName

Definition at line 398 of file viewer.cpp.

Referenced by main().

BOOL gPacificDaylightTime = FALSE

Definition at line 473 of file viewer.cpp.

U32 gPacketsIn = 0

Definition at line 3408 of file viewer.cpp.

Referenced by LLFloaterAbout::LLFloaterAbout().

BOOL gPeriodicSlowFrame = FALSE

Definition at line 448 of file viewer.cpp.

Referenced by init_debug_rendering_menu(), and main_loop().

BOOL gPingInterpolate = TRUE

Definition at line 496 of file viewer.cpp.

LLPipeline gPipeline

Definition at line 367 of file viewer.cpp.

bool gPreloadImages = true

Definition at line 563 of file viewer.cpp.

Referenced by LLViewerImageList::doPreloadImages().

bool gPreloadSounds = true

Definition at line 564 of file viewer.cpp.

Referenced by init_audio().

BOOL gPrintMessagesThisFrame = FALSE

Definition at line 399 of file viewer.cpp.

Referenced by idle_network().

BOOL gProbeHardware = TRUE

Definition at line 300 of file viewer.cpp.

Referenced by main().

BOOL gPurgeCache = FALSE

Definition at line 376 of file viewer.cpp.

Referenced by LLViewerImageList::doPrefetchImages(), and init_cache().

BOOL gPurgeOnExit = FALSE

Definition at line 375 of file viewer.cpp.

Referenced by bad_network_handler(), and cleanup_app().

BOOL gQuit = FALSE

Definition at line 390 of file viewer.cpp.

Referenced by app_force_quit(), LLFloaterTools::canClose(), LLFloaterMap::canClose(), display(), LLViewerWindow::handleActivate(), login_callback(), main_loop(), LLVOAvatar::onCustomizeEnd(), LLViewerWindow::reshape(), and use_circuit_callback().

F32 gQuitAfterSeconds = 0.f

Definition at line 468 of file viewer.cpp.

Referenced by idle().

BOOL gQuitRequested = FALSE

Definition at line 392 of file viewer.cpp.

Referenced by app_abort_quit(), app_request_quit(), LLAgent::endAnimationUpdateUI(), and idle().

BOOL gRandomizeFramerate = FALSE

Definition at line 447 of file viewer.cpp.

Referenced by init_debug_rendering_menu(), and main_loop().

LLVector3 gRelativeWindVec(0.0, 0.0, 0.0)

Referenced by audio_update_wind(), and LLDebugText::update().

LLTimer gRenderStartTime

Definition at line 466 of file viewer.cpp.

BOOL gReportedCrash = FALSE

Definition at line 293 of file viewer.cpp.

Referenced by viewer_crash_callback().

BOOL gRequestInventoryLibrary = TRUE

Definition at line 555 of file viewer.cpp.

Referenced by idle_startup().

BOOL gRestoreGL = FALSE

Definition at line 434 of file viewer.cpp.

Referenced by display(), and LLViewerWindow::restoreGL().

LLFrameTimer gRestoreGLTimer

Definition at line 433 of file viewer.cpp.

Referenced by display(), and LLViewerWindow::restoreGL().

BOOL gRotateRight = FALSE

Definition at line 469 of file viewer.cpp.

Referenced by idle().

BOOL gSecondInstance = FALSE

Definition at line 384 of file viewer.cpp.

Referenced by init_cache(), and main().

LLString gSecondLife

Definition at line 337 of file viewer.cpp.

Referenced by bad_network_handler(), check_offer_throttle(), LLProgressView::draw(), idle_startup(), LLFloaterAbout::LLFloaterAbout(), main(), update_dialog_callback(), viewer_crash_callback(), and write_system_info().

U32 gSecondsPerDay = 0

Definition at line 478 of file viewer.cpp.

Referenced by process_time_synch().

U32 gSecondsPerYear = 0

Definition at line 479 of file viewer.cpp.

Referenced by process_time_synch().

std::string gSerialNumber

Definition at line 301 of file viewer.cpp.

Referenced by idle_startup(), and main().

LLPumpIO* gServicePump = NULL

Definition at line 404 of file viewer.cpp.

Referenced by idle_network(), idle_startup(), and main_loop().

BOOL gShowObjectUpdates = FALSE

Definition at line 413 of file viewer.cpp.

Referenced by cleanup_saved_settings(), init_client_menu(), process_kill_object(), LLViewerObject::processUpdateMessage(), and saved_settings_to_globals().

F32 gSimFrames

Definition at line 322 of file viewer.cpp.

Referenced by main(), and send_stats().

F32 gSimLastTime

Definition at line 321 of file viewer.cpp.

Referenced by main(), and send_stats().

U32 gSimPingCount = 0

Definition at line 3410 of file viewer.cpp.

Referenced by update_statistics().

LLSky gSky

Definition at line 423 of file viewer.cpp.

U64 gSpaceTime = 0

Definition at line 463 of file viewer.cpp.

U64 gStartTime = 0

Definition at line 462 of file viewer.cpp.

Referenced by idle_startup(), main(), LLViewerObjectList::update(), and WinMain().

LLVFS* gStaticVFS = NULL

Definition at line 438 of file viewer.cpp.

Referenced by cleanup_app(), init_cache(), and LLVOAvatar::LLVOAvatar().

LLMemoryInfo gSysMemory

Definition at line 502 of file viewer.cpp.

LLOSInfo gSysOS

Definition at line 503 of file viewer.cpp.

LLTextureCache* gTextureCache = NULL

Definition at line 441 of file viewer.cpp.

Referenced by cleanup_app(), LLViewerImageList::decodeAllImages(), LLGLTexMemBar::draw(), init_cache(), main(), main_loop(), purge_cache(), LLViewerWindow::stopGL(), and update_texture_fetch().

LLTextureFetch* gTextureFetch = NULL

Definition at line 443 of file viewer.cpp.

Referenced by LLViewerImage::calcDecodePriority(), cleanup_app(), LLViewerImageList::decodeAllImages(), LLFloaterLagMeter::determineClient(), LLGLTexMemBar::draw(), LLTextureBar::draw(), LLTextureView::handleMouseDown(), LLTextureBar::handleMouseDown(), main(), main_loop(), LLViewerImageList::receiveImageHeader(), LLViewerImageList::receiveImagePacket(), LLViewerImage::setIsMissingAsset(), LLViewerWindow::stopGL(), update_texture_fetch(), LLViewerImage::updateFetch(), and LLViewerImage::~LLViewerImage().

U32 gTotalLandIn = 0

Definition at line 3396 of file viewer.cpp.

U32 gTotalLandOut = 0

Definition at line 3396 of file viewer.cpp.

U32 gTotalObjectBytes = 0

Definition at line 3410 of file viewer.cpp.

Referenced by send_stats(), and update_statistics().

U32 gTotalTextureBytes = 0

Definition at line 3410 of file viewer.cpp.

Referenced by send_stats(), and update_statistics().

U32 gTotalWaterIn = 0

Definition at line 3397 of file viewer.cpp.

U32 gTotalWaterOut = 0

Definition at line 3397 of file viewer.cpp.

U32 gTotalWorldBytes = 0

Definition at line 3410 of file viewer.cpp.

BOOL gUseAudio = TRUE

Definition at line 552 of file viewer.cpp.

Referenced by idle_startup().

BOOL gUseConsole = TRUE

Definition at line 551 of file viewer.cpp.

Referenced by main().

BOOL gUseFMOD = TRUE

Definition at line 553 of file viewer.cpp.

BOOL gUseWireframe = FALSE

Definition at line 402 of file viewer.cpp.

Referenced by display(), LLUseOcclusionListener::handleEvent(), and init_debug_rendering_menu().

BOOL gVectorizeEnable = FALSE

Definition at line 4721 of file viewer.cpp.

BOOL gVectorizePerfTest = TRUE

Definition at line 4720 of file viewer.cpp.

Referenced by init_debug_rendering_menu(), and LLViewerJointMesh::updateGeometry().

U32 gVectorizeProcessor = 0

Definition at line 4722 of file viewer.cpp.

Referenced by LLViewerJointMesh::updateGeometry().

BOOL gVectorizeSkin = FALSE

Definition at line 4723 of file viewer.cpp.

BOOL gVelocityInterpolate = TRUE

Definition at line 495 of file viewer.cpp.

bool gVerifySSLCert = true

Definition at line 295 of file viewer.cpp.

Referenced by LLXMLRPCTransaction::Impl::init().

LLUUID gViewerDigest

Definition at line 403 of file viewer.cpp.

Referenced by idle_startup(), LLFloaterAbout::LLFloaterAbout(), and main().

U32 gVisCompared

U32 gVisTested

LLString gWindowTitle

Definition at line 338 of file viewer.cpp.

Referenced by main(), and send_url_to_other_instance().

LLVector3 gWindVec(3.0, 3.0, 0.0)

Referenced by audio_update_wind(), idle(), and LLDebugText::update().

F32 gWorstLandCompression = 0.f

Definition at line 3401 of file viewer.cpp.

F32 gWorstWaterCompression = 0.f

Definition at line 3401 of file viewer.cpp.

S32 gYieldMS = 0

Definition at line 310 of file viewer.cpp.

Referenced by main_loop().

BOOL gYieldTime = FALSE

Definition at line 311 of file viewer.cpp.

Referenced by main_loop().

const char* LEGACY_DEFAULT_SETTINGS_FILE = "settings_dale.ini"

Definition at line 401 of file viewer.cpp.

Referenced by main().

const F32 LOGOUT_REQUEST_TIME = 6.f

Definition at line 415 of file viewer.cpp.

Referenced by send_logout_request().

const S32 MAX_CONSOLE_LINES = 500

Definition at line 314 of file viewer.cpp.

const S32 NUM_SESSIONS_BEFORE_SHOW_PROFILE = 5

Definition at line 315 of file viewer.cpp.

char sWindowClass[] = "Dale's Unofficial Viewer" [static]

Definition at line 339 of file viewer.cpp.

Referenced by main(), and send_url_to_other_instance().

const char USAGE[] [static]

Definition at line 506 of file viewer.cpp.

EUserServerDomain UserServerDefaultChoice = USERSERVER_DMZ [static]

Definition at line 356 of file viewer.cpp.

Referenced by main().

LLVectorProcessorListener vector_processor_listener [static]

Definition at line 4792 of file viewer.cpp.

Referenced by saved_settings_to_globals().

LLVectorizationEnableListener vectorization_enable_listener [static]

Definition at line 4770 of file viewer.cpp.

Referenced by saved_settings_to_globals().

LLVectorizeSkinListener vectorize_skin_listener [static]

Definition at line 4781 of file viewer.cpp.

Referenced by saved_settings_to_globals().

const char* VFS_DATA_FILE_BASE = "data.db2.x."

Definition at line 318 of file viewer.cpp.

Referenced by init_cache().

const char* VFS_INDEX_FILE_BASE = "index.db2.x."

Definition at line 319 of file viewer.cpp.

Referenced by init_cache().


Generated on Thu Jul 1 06:11:03 2010 for Second Life Viewer by  doxygen 1.4.7