viewer.h File Reference

Main file for viewer. More...

#include "llviewercontrol.h"

Include dependency graph for viewer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TOGGLE_HACKED_GODLIKE_VIEWER
#define REGIONS_PER_LANDSCAPE_EDGE   3
#define NUMBER_OF_REGIONS
#define CENTER_REGION

Functions

void display (BOOL rebuild=TRUE, F32 zoom_factor=1.f, int subfield=0)
void draw_axes ()
void fire_shot (const U8 shot_type, const U8 use_physics)
void add_object (LLPCode pcode, U8 use_physics, const LLVector3d &object_pos_global, const LLQuaternion &rotation, const LLVector3 &scale, const LLVector3 &velocity, const LLVector3 &angular_velocity)
BOOL add_object (LLPCode pcode, S32 screen_x, S32 screen_y, U8 use_physics)
void idle ()
void idle_network ()
void init_audio ()
void init_textures ()
void init_landscape ()
void keyboard (char key)
void keyboard_windows (char key)
void kill_all_trees ()
void move_sun ()
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)
void audio_update_volume (bool force_update=true)
void audio_update_listener ()
void audio_update_wind (bool force_update=true)
void save_final_snapshot (void *)
void app_user_quit ()
void app_request_quit ()
void app_abort_quit ()
void app_force_quit (const char *launch_file_on_quit=NULL)
void app_early_exit (const LLString &message)
void app_force_exit (S32 arg)
void do_disconnect (const LLString &message)
void send_logout_request ()
void save_avatar (void *)
void set_view (S32 which)
void user_logout ()
F32 mouse_x_from_center (S32 x)
F32 mouse_y_from_center (S32 x)
void print_agent_nvpairs (void *)
void reload_viewer (void)
void reset_statistics ()
void output_statistics (void *)
void write_debug (const char *str)
void write_debug (const std::string &str)
void login_alert_done (S32 option, void *user_data)
void callback_cache_name (const LLUUID &id, const char *firstname, const char *lastname, BOOL is_group, void *data)
void load_name_cache ()
void remove_marker_file ()
const LLUUIDagent_get_id ()
const LLUUIDagent_get_session_id ()
void agent_send_reliable_message ()
const std::vector< std::string > & getLoginURIs ()
const std::string & getHelperURI ()
void resetURIs ()
void load_region_name_cache ()
void save_region_name_cache ()

Variables

BOOL gHackGodmode
LLString gSecondLife
S32 gNumSessions
BOOL gNoRender
LLMemoryInfo gSysMemory
BOOL gLogMessages
BOOL gUseAudio
bool gPreloadImages
BOOL gGodConnect
LLString gCmdLineFirstName
LLString gCmdLineLastName
LLString gCmdLinePassword
BOOL gAutoLogin
U32 gFrameCount
U32 gForegroundFrameCount
BOOL gRequestInventoryLibrary
BOOL gAcceptTOS
BOOL gAcceptCriticalMessage
std::string gChannelName
LLUUID gInventoryLibraryOwner
LLUUID gInventoryLibraryRoot
BOOL gLastExecFroze
F32 gLogoutMaxTime
LLTimer gRenderStartTime
LLFrameTimer gForegroundTime
LLTimer gLogoutTimer
BOOL gInProductionGrid
S32 gCrashBehavior
bool gVerifySSLCert
const char * DEFAULT_SETTINGS_FILE
const U32 PATCH_SIZE
const LLVector3 DEFAULT_OBJECT_SCALE
BOOL gDisconnected
BOOL gDisableVoice
BOOL gQuit
BOOL gQuitRequested
BOOL gLogoutRequestSent
BOOL gInitializationComplete
BOOL gUseWireframe
BOOL gPurgeCache
U32 gSecondsPerDay
U32 gSecondsPerYear
BOOL gPacificDaylightTime
LLString gLastVersionChannel
LLVector3 gWindVec
LLVector3 gRelativeWindVec
U64 gFrameTime
F32 gFrameTimeSeconds
F32 gFrameIntervalSeconds
F32 gFPSClamped
F32 gFrameDTClamped
U64 gStartTime
LLFrameTimer gRestoreGLTimer
BOOL gRestoreGL
BOOL gDisplayCameraPos
BOOL gDisplayWindInfo
BOOL gDisplayNearestWater
BOOL gDisplayFOV
BOOL gForceRenderLandFence
BOOL gAllowIdleAFK
F32 gAFKTimeout
BOOL gShowObjectUpdates
BOOL gTeleportDisplay
LLFrameTimer gTeleportDisplayTimer
std::map< S32, LLFrameTimergDebugTimers
LLVFSgStaticVFS
LLUUID gViewerDigest
LLWorkerThreadgImageDecodeThread
LLTextureFetchgTextureFetch
LLTextureCachegTextureCache
LLPumpIOgServicePump
LLUUID gSunTextureID
LLUUID gMoonTextureID
BOOL gHandleKeysAsync
F32 gMapScale
F32 gMiniMapScale
F32 gMouseSensitivity
BOOL gInvertMouse
const S32 AGENT_UPDATES_PER_SECOND = 10
LLString gWindowTitle
LLString gDisabledMessage
BOOL gHideLinks
const S32 MAP_REGION_TO_X [NUMBER_OF_REGIONS-1]
const S32 MAP_REGION_TO_Y [NUMBER_OF_REGIONS-1]
const BOOL FOR_SELECTION = TRUE
const BOOL NOT_FOR_SELECTION = FALSE
const U8 YES_PHYSICS = 1
const U8 NO_PHYSICS = 0


Detailed Description

Main file for viewer.

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.h.


Define Documentation

#define CENTER_REGION

Value:

Definition at line 196 of file viewer.h.

#define NUMBER_OF_REGIONS

Value:

Definition at line 194 of file viewer.h.

#define REGIONS_PER_LANDSCAPE_EDGE   3

Definition at line 193 of file viewer.h.

#define TOGGLE_HACKED_GODLIKE_VIEWER

Definition at line 47 of file viewer.h.


Function Documentation

BOOL add_object ( LLPCode  pcode,
S32  screen_x,
S32  screen_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(), LLViewerObject::getID(), LLAgent::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().

void add_object ( LLPCode  pcode,
U8  use_physics,
const LLVector3d object_pos_global,
const LLQuaternion rotation,
const LLVector3 scale,
const LLVector3 velocity,
const LLVector3 angular_velocity 
)

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().

void app_abort_quit (  ) 

Definition at line 3319 of file viewer.cpp.

References FALSE, gQuitRequested, and llinfos.

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

void app_early_exit ( const LLString message  ) 

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 = NULL  ) 

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 = true  ) 

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 = true  ) 

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 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(), LLNameEditor::refreshAll(), LLNameBox::refreshAll(), and LLNameListCtrl::refreshAll().

Referenced by idle_startup().

void display ( BOOL  rebuild = TRUE,
F32  zoom_factor = 1.f,
int  subfield = 0 
)

Definition at line 158 of file llviewerdisplay.cpp.

References LLViewerWindow::checkSettings(), LLGLState::checkStates(), LLGLState::checkTextureChannels(), LLPipeline::disableLights(), display_startup(), display_update_camera(), f, FALSE, LLFastTimer::FTM_REBUILD, LLFastTimer::FTM_RENDER, LLFastTimer::FTM_WORLD_UPDATE, gAgent, gCamera, gDisconnected, LLViewerWindow::getActive(), LLFocusMgr::getAppHasFocus(), LLVOAvatar::getAttachmentCount(), LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLWindow::getMinimized(), LLCoordFrame::getOrigin(), LLViewerWindow::getPlatformWindow(), LLPipeline::getRenderTypeMask(), LLControlGroup::getS32(), LLPipeline::getSpatialPartition(), LLStartUp::getStartupState(), LLAgent::getTeleportMessage(), LLAgent::getTeleportState(), LLWindow::getVisible(), gFeatureManagerp, gFocusMgr, gForegroundFrameCount, gFrameCount, gFrameStats, gFrameTimeSeconds, gGLManager, gHandleKeysAsync, gHaveSavedSnapshot, gHUDManager, gImageList, glClear, gLogoutMaxTime, gLogoutRequestSent, gLogoutTimer, glPolygonMode, glPopMatrix, gNoRender, gPipeline, gQuit, gRestoreGL, gRestoreGLTimer, gSavedSettings, gTeleportArrivalTimer, gTeleportDisplay, gTeleportDisplayTimer, gUseWireframe, gViewerWindow, LLPipeline::hasRenderDebugFeatureMask(), LLPipeline::hasRenderType(), LLDrawable::incrementVisible(), LLFeatureList::isFeatureAvailable(), LLViewerWindow::isPickPending(), llmin(), mask, LLPipeline::mBackfaceCull, LLViewerImageList::mForceResetTextureStats, LLGLManager::mHasOcclusionQuery, MIN_NEAR_PLANE, LLFrameStats::MISC_END, LLViewerWindow::mWindow, NULL, LLPipeline::PARTITION_VOLUME, LLViewerWindow::performPick(), LLDrawPool::POOL_ALPHA_POST_WATER, pre_show_depth_buffer(), process_keystrokes_async(), LLSpatialPartition::processImagery(), LLFrameStats::REBUILD, LLPipeline::rebuildPools(), LLPipeline::RENDER_DEBUG_FEATURE_DYNAMIC_TEXTURES, LLPipeline::RENDER_DEBUG_FEATURE_UI, render_disconnected_background(), LLPipeline::RENDER_TYPE_BUMP, LLPipeline::RENDER_TYPE_HUD, LLPipeline::RENDER_TYPE_SIMPLE, LLPipeline::RENDER_TYPE_VOLUME, LLFrameStats::RENDER_UI, render_ui_and_swap(), LLPipeline::renderGeom(), LLFrameTimer::reset(), LLGLState::resetTextureStates(), RESTORE_GL_TIME, LLViewerCamera::rotateToLeftEye(), LLViewerCamera::rotateToRightEye(), S32, LLCoordFrame::setAxes(), LLControlGroup::setBOOL(), LLCamera::setNear(), LLCoordFrame::setOrigin(), LLViewerWindow::setProgressCancelButtonVisible(), LLViewerWindow::setProgressPercent(), LLViewerWindow::setProgressString(), LLPipeline::setRenderTypeMask(), LLViewerWindow::setShowProgress(), LLAgent::setTeleportMessage(), LLAgent::setTeleportState(), setup_hud_matrices(), LLViewerWindow::setupViewport(), LLViewerCamera::setZoomParameters(), LLVOAvatar::sRenderGroupTitles, LLVOAvatar::sRenderName, LLPipeline::sShowHUDAttachments, LLFrameStats::start(), LLFrameStats::STATE_SORT, STATE_STARTED, LLPipeline::stateSort(), LLAgent::sTeleportProgressMessages, STEREO_MODE_ACTIVE, stop_glerror, LLPipeline::sUseOcclusion, t, TELEPORT_ARRIVAL_DELAY, LLAgent::TELEPORT_ARRIVING, TELEPORT_EXPIRY, TELEPORT_EXPIRY_PER_ATTACHMENT, LLAgent::TELEPORT_MOVING, LLAgent::TELEPORT_NONE, LLAgent::TELEPORT_REQUESTED, LLAgent::TELEPORT_START, LLAgent::TELEPORT_START_ARRIVAL, LLPipeline::toggleRenderDebugFeature(), LLPipeline::toggleRenderType(), TRUE, LLFrameStats::UPDATE_CULL, LLFrameStats::UPDATE_GEOM, LLFrameStats::UPDATE_TEX_STATS, LLHUDObject::updateAll(), LLDynamicTexture::updateAllInstances(), LLPipeline::updateCull(), LLHUDManager::updateEffects(), LLViewerCamera::updateFrustumPlanes(), LLPipeline::updateGeom(), LLImageGL::updateStats(), and LLViewerCamera::updateStereoValues().

Referenced by main_loop(), and LLViewerWindow::rawSnapshot().

void do_disconnect ( const LLString message  ) 

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 draw_axes (  ) 

Definition at line 1132 of file llviewerdisplay.cpp.

References f, gAgent, LLAgent::getPositionAgent(), glBegin, glEnd, glPopMatrix, glTranslatef, renderCoordinateAxes(), v, VX, VY, and VZ.

Referenced by render_ui_3d().

void fire_shot ( const U8  shot_type,
const U8  use_physics 
)

const std::string& getHelperURI (  ) 

Definition at line 6384 of file viewer.cpp.

References gHelperURI, gUserServerChoice, and gUserServerDomainName.

Referenced by LLCurrencyUIManager::Impl::startTransaction(), and LLFloaterBuyLandUI::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(), LLFrameTimer::getElapsedTimeF32(), LLTimer::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(), idle_network(), LLFrameStats::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(), LLViewerObjectList::update(), LLGestureManager::update(), LLSelectMgr::update(), LLEventNotifier::update(), LLFrameStats::UPDATE_EFFECTS, LLFrameStats::UPDATE_MOVE, LLFrameStats::UPDATE_PARTICLES, update_statistics(), LLAgent::updateAgentPosition(), LLControlBase::updateAllListeners(), LLViewerObjectList::updateApparentAngles(), LLFloaterAvatarList::updateAvatarList(), LLViewerJoystick::updateCamera(), LLAgent::updateCamera(), LLViewerImage::updateClass(), LLMortician::updateClass(), LLEventTimer::updateClass(), LLWorld::updateClouds(), LLViewerWindow::updateDebugText(), LLSelectMgr::updateEffects(), LLFrameTimer::updateFrameTime(), LLViewerImageList::updateImages(), LLBumpImageList::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_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 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().

void init_landscape (  ) 

void init_textures (  ) 

void keyboard ( char  key  ) 

void keyboard_windows ( char  key  ) 

void kill_all_trees (  ) 

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().

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  x  ) 

Definition at line 4105 of file viewer.cpp.

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

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

void move_sun (  ) 

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().

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().

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 reload_viewer ( void   ) 

void remove_marker_file (  ) 

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_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 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 set_view ( S32  which  ) 

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 write_debug ( const std::string &  str  ) 

void write_debug ( const char *  str  ) 


Variable Documentation

const S32 AGENT_UPDATES_PER_SECOND = 10

Definition at line 185 of file viewer.h.

Referenced by idle(), and send_agent_update().

const LLVector3 DEFAULT_OBJECT_SCALE

Referenced by add_object().

const char* DEFAULT_SETTINGS_FILE

Definition at line 400 of file viewer.cpp.

Referenced by idle_startup(), and main().

const BOOL FOR_SELECTION = TRUE

Definition at line 227 of file viewer.h.

Referenced by LLViewerWindow::analyzeHit(), LLToolSelectRect::handleRectangleSelection(), and LLViewerWindow::hitObjectOrLandGlobalAsync().

BOOL gAcceptCriticalMessage

Definition at line 557 of file viewer.cpp.

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

BOOL gAcceptTOS

Definition at line 556 of file viewer.cpp.

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

F32 gAFKTimeout

Definition at line 408 of file viewer.cpp.

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

BOOL gAllowIdleAFK

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().

BOOL gAutoLogin

Definition at line 397 of file viewer.cpp.

Referenced by idle_startup().

std::string gChannelName

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().

S32 gCrashBehavior

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().

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

Definition at line 385 of file viewer.cpp.

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

BOOL gDisconnected

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().

BOOL gDisplayCameraPos

Definition at line 427 of file viewer.cpp.

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

BOOL gDisplayFOV

Definition at line 430 of file viewer.cpp.

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

BOOL gDisplayNearestWater

Definition at line 428 of file viewer.cpp.

BOOL gDisplayWindInfo

Definition at line 426 of file viewer.cpp.

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

BOOL gForceRenderLandFence

Definition at line 92 of file llviewerdisplay.cpp.

Referenced by LLFloaterAuction::onClickSnapshot(), and render_hud_elements().

U32 gForegroundFrameCount

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

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

Definition at line 460 of file viewer.cpp.

F32 gFrameDTClamped

Definition at line 3404 of file viewer.cpp.

F32 gFrameIntervalSeconds

Definition at line 459 of file viewer.cpp.

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

U64 gFrameTime

Definition at line 457 of file viewer.cpp.

F32 gFrameTimeSeconds

Definition at line 458 of file viewer.cpp.

BOOL gGodConnect

Definition at line 550 of file viewer.cpp.

Referenced by idle_startup().

BOOL gHackGodmode

Definition at line 360 of file viewer.cpp.

Referenced by check_toggle_hacked_godmode(), and handle_toggle_hacked_godmode().

BOOL gHandleKeysAsync

Definition at line 297 of file viewer.cpp.

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

BOOL gHideLinks

Definition at line 341 of file viewer.cpp.

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

LLWorkerThread* gImageDecodeThread

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

Definition at line 396 of file viewer.cpp.

BOOL gInProductionGrid

Definition at line 344 of file viewer.cpp.

Referenced by enable_save_into_inventory(), enable_take(), LLFloaterReporter::gatherReport(), LLObjectEnableDelete::handleEvent(), LLToolsEnableTakeCopy::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

Definition at line 410 of file viewer.cpp.

BOOL gLastExecFroze

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.

BOOL gLogMessages

Definition at line 554 of file viewer.cpp.

Referenced by idle_startup().

F32 gLogoutMaxTime

Definition at line 416 of file viewer.cpp.

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

BOOL gLogoutRequestSent

Definition at line 411 of file viewer.cpp.

LLTimer gLogoutTimer

Definition at line 412 of file viewer.cpp.

F32 gMapScale

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().

F32 gMiniMapScale

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().

LLUUID gMoonTextureID

Definition at line 197 of file llstartup.cpp.

Referenced by idle_startup(), LLDrawPoolWater::LLDrawPoolWater(), LLVOSky::LLVOSky(), and LLVOSky::restoreGL().

F32 gMouseSensitivity

Definition at line 409 of file viewer.cpp.

BOOL gNoRender

Definition at line 76 of file llgl.cpp.

S32 gNumSessions

Definition at line 405 of file viewer.cpp.

Referenced by main().

BOOL gPacificDaylightTime

Definition at line 473 of file viewer.cpp.

bool gPreloadImages

Definition at line 563 of file viewer.cpp.

Referenced by LLViewerImageList::doPreloadImages().

BOOL gPurgeCache

Definition at line 376 of file viewer.cpp.

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

BOOL gQuit

Definition at line 390 of file viewer.cpp.

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

BOOL gQuitRequested

Definition at line 392 of file viewer.cpp.

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

LLVector3 gRelativeWindVec

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

LLTimer gRenderStartTime

Definition at line 466 of file viewer.cpp.

BOOL gRequestInventoryLibrary

Definition at line 555 of file viewer.cpp.

Referenced by idle_startup().

BOOL gRestoreGL

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().

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

Definition at line 478 of file viewer.cpp.

Referenced by process_time_synch().

U32 gSecondsPerYear

Definition at line 479 of file viewer.cpp.

Referenced by process_time_synch().

LLPumpIO* gServicePump

Definition at line 404 of file viewer.cpp.

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

BOOL gShowObjectUpdates

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().

U64 gStartTime

Definition at line 462 of file viewer.cpp.

LLVFS* gStaticVFS

Definition at line 438 of file viewer.cpp.

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

LLUUID gSunTextureID

Definition at line 196 of file llstartup.cpp.

Referenced by idle_startup(), LLDrawPoolWater::LLDrawPoolWater(), LLVOSky::LLVOSky(), and LLVOSky::restoreGL().

LLMemoryInfo gSysMemory

Definition at line 502 of file viewer.cpp.

BOOL gTeleportDisplay

Definition at line 87 of file llviewerdisplay.cpp.

Referenced by display(), process_teleport_start(), LLAgent::teleportCancel(), and LLAgent::teleportCore().

LLFrameTimer gTeleportDisplayTimer

Definition at line 88 of file llviewerdisplay.cpp.

Referenced by display().

LLTextureCache* gTextureCache

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

Definition at line 443 of file viewer.cpp.

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

BOOL gUseAudio

Definition at line 552 of file viewer.cpp.

Referenced by idle_startup().

BOOL gUseWireframe

Definition at line 402 of file viewer.cpp.

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

bool gVerifySSLCert

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().

LLString gWindowTitle

Definition at line 338 of file viewer.cpp.

Referenced by main(), and send_url_to_other_instance().

LLVector3 gWindVec

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

const S32 MAP_REGION_TO_X[NUMBER_OF_REGIONS-1]

Initial value:

{
        1,      
        0,      
        -1,     
        0,      
        1,      
        -1,     
        -1,     
        1       
}

Definition at line 204 of file viewer.h.

const S32 MAP_REGION_TO_Y[NUMBER_OF_REGIONS-1]

Initial value:

{
        0,      
        1,      
        0,      
        -1,     
        1,      
        1,      
        -1,     
        -1      
}

Definition at line 215 of file viewer.h.

const U8 NO_PHYSICS = 0

Definition at line 231 of file viewer.h.

Referenced by LLToolPlacer::placeObject().

const BOOL NOT_FOR_SELECTION = FALSE

Definition at line 228 of file viewer.h.

Referenced by LLViewerWindow::setup3DRender().

const U32 PATCH_SIZE

const U8 YES_PHYSICS = 1

Definition at line 230 of file viewer.h.


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