aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/viewer.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/viewer.h
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/viewer.h')
-rw-r--r--linden/indra/newview/viewer.h40
1 files changed, 5 insertions, 35 deletions
diff --git a/linden/indra/newview/viewer.h b/linden/indra/newview/viewer.h
index e6392f5..c2ec173 100644
--- a/linden/indra/newview/viewer.h
+++ b/linden/indra/newview/viewer.h
@@ -2,6 +2,8 @@
2 * @file viewer.h 2 * @file viewer.h
3 * @brief Main file for viewer. 3 * @brief Main file for viewer.
4 * 4 *
5 * $LicenseInfo:firstyear=2000&license=viewergpl$
6 *
5 * Copyright (c) 2000-2007, Linden Research, Inc. 7 * Copyright (c) 2000-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#ifndef LL_VIEWER_H 32#ifndef LL_VIEWER_H
@@ -83,6 +86,7 @@ extern LLString gCmdLineLastName;
83extern LLString gCmdLinePassword; 86extern LLString gCmdLinePassword;
84extern BOOL gAutoLogin; 87extern BOOL gAutoLogin;
85extern U32 gFrameCount; 88extern U32 gFrameCount;
89extern U32 gForegroundFrameCount;
86extern BOOL gRequestInventoryLibrary; 90extern BOOL gRequestInventoryLibrary;
87extern BOOL gAcceptTOS; 91extern BOOL gAcceptTOS;
88extern BOOL gAcceptCriticalMessage; 92extern BOOL gAcceptCriticalMessage;
@@ -92,6 +96,7 @@ extern LLUUID gInventoryLibraryRoot;
92extern BOOL gLastExecFroze; 96extern BOOL gLastExecFroze;
93extern F32 gLogoutMaxTime; 97extern F32 gLogoutMaxTime;
94extern LLTimer gRenderStartTime; 98extern LLTimer gRenderStartTime;
99extern LLFrameTimer gForegroundTime;
95extern LLTimer gLogoutTimer; 100extern LLTimer gLogoutTimer;
96extern BOOL gInProductionGrid; 101extern BOOL gInProductionGrid;
97extern S32 gCrashBehavior; 102extern S32 gCrashBehavior;
@@ -158,40 +163,6 @@ extern LLTextureCache* gTextureCache;
158 163
159extern LLPumpIO* gServicePump; 164extern LLPumpIO* gServicePump;
160 165
161class LLURLSimString
162{
163public:
164 enum { NOT_SET=0, NOT_PARSED=1, PARSE_OK=2, PARSE_FAIL=-1 };
165 static void setString(const LLString& url);
166 static bool parse();
167 static bool unpack_data(void* data);
168 static bool send_to_other_instance();
169
170 LLURLSimString() : mX(128), mY(128), mZ(0), mParseState(NOT_PARSED) {}
171
172private:
173 static S32 parseGridIdx(const LLString& in_string, S32 idx0, S32* res, S32 max);
174 struct llurl_data
175 {
176 char mSimName[DB_SIM_NAME_BUF_SIZE]; /*Flawfinder: ignore*/
177 S32 mSimX;
178 S32 mSimY;
179 S32 mSimZ;
180 };
181
182
183public:
184 static LLURLSimString sInstance;
185 static LLString sLocationStringHome;
186 static LLString sLocationStringLast;
187
188public:
189 LLString mSimString; // "name/x/y/z"
190 LLString mSimName;
191 S32 mX,mY,mZ;
192 S32 mParseState;
193};
194
195extern LLUUID gSunTextureID; 166extern LLUUID gSunTextureID;
196extern LLUUID gMoonTextureID; 167extern LLUUID gMoonTextureID;
197 168
@@ -213,7 +184,6 @@ const S32 AGENT_UPDATES_PER_SECOND = 10;
213// Global because multiple functions need to identify the window 184// Global because multiple functions need to identify the window
214// by its name. 185// by its name.
215extern LLString gWindowTitle; 186extern LLString gWindowTitle;
216extern LLString gWindowName;
217extern LLString gDisabledMessage; 187extern LLString gDisabledMessage;
218extern BOOL gHideLinks; 188extern BOOL gHideLinks;
219 189