diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llsky.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llsky.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llsky.h b/linden/indra/newview/llsky.h index dab9c09..5a2794b 100644 --- a/linden/indra/newview/llsky.h +++ b/linden/indra/newview/llsky.h | |||
@@ -39,7 +39,6 @@ | |||
39 | #include "v4color.h" | 39 | #include "v4color.h" |
40 | #include "v4coloru.h" | 40 | #include "v4coloru.h" |
41 | #include "llvosky.h" | 41 | #include "llvosky.h" |
42 | #include "llvostars.h" | ||
43 | #include "llvoground.h" | 42 | #include "llvoground.h" |
44 | 43 | ||
45 | const F32 NIGHTTIME_ELEVATION = -8.0f; // degrees | 44 | const F32 NIGHTTIME_ELEVATION = -8.0f; // degrees |
@@ -47,6 +46,9 @@ const F32 NIGHTTIME_ELEVATION_COS = (F32)sin(NIGHTTIME_ELEVATION*DEG_TO_RAD); | |||
47 | 46 | ||
48 | class LLViewerCamera; | 47 | class LLViewerCamera; |
49 | 48 | ||
49 | class LLVOWLSky; | ||
50 | class LLVOWLClouds; | ||
51 | |||
50 | 52 | ||
51 | class LLSky | 53 | class LLSky |
52 | { | 54 | { |
@@ -64,10 +66,8 @@ public: | |||
64 | void setSunDirection(const LLVector3 &sun_direction, const LLVector3 &sun_ang_velocity); | 66 | void setSunDirection(const LLVector3 &sun_direction, const LLVector3 &sun_ang_velocity); |
65 | void setSunTargetDirection(const LLVector3 &sun_direction, const LLVector3 &sun_ang_velocity); | 67 | void setSunTargetDirection(const LLVector3 &sun_direction, const LLVector3 &sun_ang_velocity); |
66 | 68 | ||
67 | |||
68 | LLColor4 getFogColor() const; | 69 | LLColor4 getFogColor() const; |
69 | 70 | ||
70 | |||
71 | void setCloudDensityAtAgent(F32 cloud_density); | 71 | void setCloudDensityAtAgent(F32 cloud_density); |
72 | void setWind(const LLVector3& wind); | 72 | void setWind(const LLVector3& wind); |
73 | 73 | ||
@@ -88,21 +88,24 @@ public: | |||
88 | LLVector3 getMoonDirection() const; | 88 | LLVector3 getMoonDirection() const; |
89 | LLColor4 getSunDiffuseColor() const; | 89 | LLColor4 getSunDiffuseColor() const; |
90 | LLColor4 getMoonDiffuseColor() const; | 90 | LLColor4 getMoonDiffuseColor() const; |
91 | LLColor4 getSunAmbientColor() const; | ||
92 | LLColor4 getMoonAmbientColor() const; | ||
91 | LLColor4 getTotalAmbientColor() const; | 93 | LLColor4 getTotalAmbientColor() const; |
92 | BOOL sunUp() const; | 94 | BOOL sunUp() const; |
93 | LLColor4 calcInScatter(LLColor4& transp, const LLVector3 &point, F32 exag) const; | ||
94 | 95 | ||
95 | F32 getSunPhase() const; | 96 | F32 getSunPhase() const; |
96 | void setSunPhase(const F32 phase); | 97 | void setSunPhase(const F32 phase); |
97 | 98 | ||
98 | void destroyGL(); | 99 | void destroyGL(); |
99 | void restoreGL(); | 100 | void restoreGL(); |
101 | void resetVertexBuffers(); | ||
100 | 102 | ||
101 | public: | 103 | public: |
102 | LLPointer<LLVOSky> mVOSkyp; // Pointer to the LLVOSky object (only one, ever!) | 104 | LLPointer<LLVOSky> mVOSkyp; // Pointer to the LLVOSky object (only one, ever!) |
103 | LLPointer<LLVOStars> mVOStarsp; // Pointer to the LLVOStars object (only one, ever!) | ||
104 | LLPointer<LLVOGround> mVOGroundp; | 105 | LLPointer<LLVOGround> mVOGroundp; |
105 | 106 | ||
107 | LLPointer<LLVOWLSky> mVOWLSkyp; | ||
108 | |||
106 | LLVector3 mSunTargDir; | 109 | LLVector3 mSunTargDir; |
107 | 110 | ||
108 | // Legacy stuff | 111 | // Legacy stuff |