#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.
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 CENTER_REGION |
Value:
((REGIONS_PER_LANDSCAPE_EDGE / 2) \ * REGIONS_PER_LANDSCAPE_EDGE \ + REGIONS_PER_LANDSCAPE_EDGE / 2)
#define NUMBER_OF_REGIONS |
Value:
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().
Definition at line 5928 of file viewer.cpp.
References finish_early_exit(), gDoDisconnect, llwarns, NULL, LLAlertDialog::showCritical(), and TRUE.
Referenced by idle_startup().
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().
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().
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().
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().
Definition at line 5836 of file viewer.cpp.
References LLPanelLogin::giveFocus().
Referenced by idle_startup(), and LLFloaterTOS::onCancel().
Definition at line 4099 of file viewer.cpp.
References f, LLViewerWindow::getWindowWidth(), and gViewerWindow.
Referenced by handle_fullscreen_debug(), and LLAgent::updateLookAt().
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 | ( | ) |
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().
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 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().
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 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 | ) |
const S32 AGENT_UPDATES_PER_SECOND = 10 |
Referenced by add_object().
const char* DEFAULT_SETTINGS_FILE |
const BOOL FOR_SELECTION = TRUE |
Definition at line 227 of file viewer.h.
Referenced by LLViewerWindow::analyzeHit(), LLToolSelectRect::handleRectangleSelection(), and LLViewerWindow::hitObjectOrLandGlobalAsync().
Definition at line 557 of file viewer.cpp.
Referenced by idle_startup(), and LLFloaterTOS::onContinue().
Definition at line 556 of file viewer.cpp.
Referenced by idle_startup(), and LLFloaterTOS::onContinue().
Definition at line 408 of file viewer.cpp.
Referenced by LLAFKTimeoutListener::handleEvent(), idle_afk_check(), and saved_settings_to_globals().
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().
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().
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().
Definition at line 385 of file viewer.cpp.
Referenced by LLPrefsVoice::draw(), main(), LLPrefsVoiceLogic::refresh(), LLVoiceClient::stateMachine(), LLFirstUse::useVoice(), and LLVoiceClient::voiceEnabled().
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().
Definition at line 427 of file viewer.cpp.
Referenced by init_client_menu(), and LLDebugText::update().
Definition at line 430 of file viewer.cpp.
Referenced by init_client_menu(), and LLDebugText::update().
Definition at line 428 of file viewer.cpp.
Definition at line 426 of file viewer.cpp.
Referenced by init_client_menu(), and LLDebugText::update().
Definition at line 92 of file llviewerdisplay.cpp.
Referenced by LLFloaterAuction::onClickSnapshot(), and render_hud_elements().
Definition at line 467 of file viewer.cpp.
Referenced by LLViewerWindow::handleFocus(), LLViewerWindow::handleFocusLost(), idle_startup(), and send_stats().
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().
Definition at line 460 of file viewer.cpp.
Definition at line 3404 of file viewer.cpp.
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().
Definition at line 457 of file viewer.cpp.
Definition at line 458 of file viewer.cpp.
Definition at line 360 of file viewer.cpp.
Referenced by check_toggle_hacked_godmode(), and handle_toggle_hacked_godmode().
Definition at line 297 of file viewer.cpp.
Referenced by cleanup_saved_settings(), display(), init_debug_ui_menu(), and saved_settings_to_globals().
Definition at line 341 of file viewer.cpp.
Referenced by LLFloaterBuyCurrency::buyCurrency(), idle_startup(), LLPanelLogin::LLPanelLogin(), main(), LLPanelLogin::onClickNewAccount(), and update_dialog_callback().
Definition at line 442 of file viewer.cpp.
Referenced by cleanup_app(), LLViewerImageList::decodeAllImages(), main(), main_loop(), LLViewerWindow::stopGL(), and update_texture_fetch().
Definition at line 396 of file viewer.cpp.
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().
Definition at line 562 of file viewer.cpp.
Referenced by LLFolderView::addFolder(), disconnect_viewer(), handle_take(), LLFolderViewItem::handleHover(), idle_startup(), and LLInventoryModel::startBackgroundFetch().
Definition at line 410 of file viewer.cpp.
Definition at line 571 of file viewer.cpp.
Referenced by idle_startup(), init_marker_file(), and main().
Definition at line 481 of file viewer.cpp.
Definition at line 416 of file viewer.cpp.
Referenced by display(), idle_shutdown(), and send_logout_request().
Definition at line 411 of file viewer.cpp.
Definition at line 412 of file viewer.cpp.
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().
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().
Definition at line 197 of file llstartup.cpp.
Referenced by idle_startup(), LLDrawPoolWater::LLDrawPoolWater(), LLVOSky::LLVOSky(), and LLVOSky::restoreGL().
Definition at line 409 of file viewer.cpp.
Definition at line 473 of file viewer.cpp.
bool gPreloadImages |
Definition at line 376 of file viewer.cpp.
Referenced by LLViewerImageList::doPrefetchImages(), and init_cache().
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().
Definition at line 392 of file viewer.cpp.
Referenced by app_abort_quit(), app_request_quit(), LLAgent::endAnimationUpdateUI(), and idle().
Referenced by audio_update_wind(), and LLDebugText::update().
Definition at line 466 of file viewer.cpp.
Definition at line 434 of file viewer.cpp.
Referenced by display(), and LLViewerWindow::restoreGL().
Definition at line 433 of file viewer.cpp.
Referenced by display(), and LLViewerWindow::restoreGL().
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().
Definition at line 404 of file viewer.cpp.
Referenced by idle_network(), idle_startup(), and main_loop().
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().
Definition at line 462 of file viewer.cpp.
Definition at line 438 of file viewer.cpp.
Referenced by cleanup_app(), init_cache(), and LLVOAvatar::LLVOAvatar().
Definition at line 196 of file llstartup.cpp.
Referenced by idle_startup(), LLDrawPoolWater::LLDrawPoolWater(), LLVOSky::LLVOSky(), and LLVOSky::restoreGL().
Definition at line 502 of file viewer.cpp.
Definition at line 87 of file llviewerdisplay.cpp.
Referenced by display(), process_teleport_start(), LLAgent::teleportCancel(), and LLAgent::teleportCore().
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().
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().
Definition at line 402 of file viewer.cpp.
Referenced by display(), LLUseOcclusionListener::handleEvent(), and init_debug_rendering_menu().
bool gVerifySSLCert |
Definition at line 403 of file viewer.cpp.
Referenced by idle_startup(), LLFloaterAbout::LLFloaterAbout(), and main().
Referenced by audio_update_wind(), idle(), and LLDebugText::update().
const S32 MAP_REGION_TO_X[NUMBER_OF_REGIONS-1] |
const S32 MAP_REGION_TO_Y[NUMBER_OF_REGIONS-1] |
const U8 NO_PHYSICS = 0 |
const BOOL NOT_FOR_SELECTION = FALSE |
const U32 PATCH_SIZE |
const U8 YES_PHYSICS = 1 |