aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworld.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llworld.h
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llworld.h')
-rw-r--r--linden/indra/newview/llworld.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/linden/indra/newview/llworld.h b/linden/indra/newview/llworld.h
index 7b935e8..d297d47 100644
--- a/linden/indra/newview/llworld.h
+++ b/linden/indra/newview/llworld.h
@@ -35,12 +35,12 @@
35#include "llpatchvertexarray.h" 35#include "llpatchvertexarray.h"
36 36
37#include "llmath.h" 37#include "llmath.h"
38//#include "vmath.h"
39#include "v3math.h" 38#include "v3math.h"
40#include "llmemory.h" 39#include "llmemory.h"
41#include "llstring.h" 40#include "llstring.h"
42#include "llviewerpartsim.h" 41#include "llviewerpartsim.h"
43#include "llviewerimage.h" 42#include "llviewerimage.h"
43#include "llvowater.h"
44 44
45class LLViewerRegion; 45class LLViewerRegion;
46class LLVector3d; 46class LLVector3d;
@@ -49,7 +49,6 @@ class LLNetMap;
49class LLHost; 49class LLHost;
50 50
51class LLViewerObject; 51class LLViewerObject;
52class LLVOWater;
53class LLSurfacePatch; 52class LLSurfacePatch;
54 53
55class LLCloudPuff; 54class LLCloudPuff;
@@ -60,11 +59,11 @@ class LLVOAvatar;
60// as simulators are connected to, viewer_regions are popped off the stack and connected as required 59// as simulators are connected to, viewer_regions are popped off the stack and connected as required
61// as simulators are removed, they are pushed back onto the stack 60// as simulators are removed, they are pushed back onto the stack
62 61
63class LLWorld 62class LLWorld : public LLSingleton<LLWorld>
64{ 63{
65public: 64public:
66 LLWorld(const U32 grids_per_region, const F32 meters_per_grid); 65 LLWorld();
67 ~LLWorld(); 66 void destroyClass();
68 67
69 LLViewerRegion* addRegion(const U64 &region_handle, const LLHost &host); 68 LLViewerRegion* addRegion(const U64 &region_handle, const LLHost &host);
70 // safe to call if already present, does the "right thing" if 69 // safe to call if already present, does the "right thing" if
@@ -114,7 +113,7 @@ public:
114 // region X and Y size in meters 113 // region X and Y size in meters
115 F32 getRegionWidthInMeters() const { return mWidthInMeters; } 114 F32 getRegionWidthInMeters() const { return mWidthInMeters; }
116 F32 getRegionMinHeight() const { return -mWidthInMeters; } 115 F32 getRegionMinHeight() const { return -mWidthInMeters; }
117 F32 getRegionMaxHeight() const { return 3.f*mWidthInMeters; } 116 F32 getRegionMaxHeight() const { return MAX_OBJECT_Z; }
118 117
119 void updateRegions(F32 max_update_time); 118 void updateRegions(F32 max_update_time);
120 void updateVisibilities(); 119 void updateVisibilities();
@@ -149,7 +148,6 @@ public:
149 typedef std::list<LLViewerRegion*> region_list_t; 148 typedef std::list<LLViewerRegion*> region_list_t;
150 149
151 region_list_t mActiveRegionList; 150 region_list_t mActiveRegionList;
152 LLViewerPartSim mPartSim;
153 151
154 region_list_t& getRegionList() { return mActiveRegionList; } 152 region_list_t& getRegionList() { return mActiveRegionList; }
155 153
@@ -159,12 +157,12 @@ private:
159 region_list_t mCulledRegionList; 157 region_list_t mCulledRegionList;
160 158
161 // Number of points on edge 159 // Number of points on edge
162 const U32 mWidth; 160 static const U32 mWidth;
163 161
164 // meters/point, therefore mWidth * mScale = meters per edge 162 // meters/point, therefore mWidth * mScale = meters per edge
165 const F32 mScale; 163 static const F32 mScale;
166 164
167 const F32 mWidthInMeters; 165 static const F32 mWidthInMeters;
168 166
169 F32 mLandFarClip; // Far clip distance for land. 167 F32 mLandFarClip; // Far clip distance for land.
170 LLPatchVertexArray mLandPatch; 168 LLPatchVertexArray mLandPatch;
@@ -190,8 +188,6 @@ private:
190 U64 mSpaceTimeUSec; 188 U64 mSpaceTimeUSec;
191}; 189};
192 190
193extern LLWorld *gWorldp;
194#define gWorldPointer gWorldp
195 191
196void process_enable_simulator(LLMessageSystem *mesgsys, void **user_data); 192void process_enable_simulator(LLMessageSystem *mesgsys, void **user_data);
197void process_disable_simulator(LLMessageSystem *mesgsys, void **user_data); 193void process_disable_simulator(LLMessageSystem *mesgsys, void **user_data);