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/llwlanimator.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/llwlanimator.h (renamed from linden/indra/newview/llvostars.h) | 71 |
1 files changed, 40 insertions, 31 deletions
diff --git a/linden/indra/newview/llvostars.h b/linden/indra/newview/llwlanimator.h index e06d2d9..18c730a 100644 --- a/linden/indra/newview/llvostars.h +++ b/linden/indra/newview/llwlanimator.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /** | 1 | /** |
2 | * @file llvostars.h | 2 | * @file llwlanimator.h |
3 | * @brief LLVOStars class header file | 3 | * @brief Interface for the LLWLAnimator class. |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2001-2008, Linden Research, Inc. | 7 | * Copyright (c) 2007-2008, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -29,39 +29,48 @@ | |||
29 | * $/LicenseInfo$ | 29 | * $/LicenseInfo$ |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #ifndef LL_LLVOSTARS_H | 32 | #ifndef LL_WL_ANIMATOR_H |
33 | #define LL_LLVOSTARS_H | 33 | #define LL_WL_ANIMATOR_H |
34 | 34 | ||
35 | #include "stdtypes.h" | 35 | #include "llwlparamset.h" |
36 | #include "v4color.h" | 36 | #include <string> |
37 | #include "llviewerobject.h" | 37 | #include <map> |
38 | #include "llframetimer.h" | ||
39 | 38 | ||
40 | class LLFace; | 39 | class LLWLAnimator { |
41 | |||
42 | class LLVOStars : public LLStaticViewerObject | ||
43 | { | ||
44 | public: | 40 | public: |
45 | LLVOStars(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp); | 41 | F64 mStartTime; |
42 | F32 mDayRate; | ||
43 | F64 mDayTime; | ||
44 | |||
45 | // track to play | ||
46 | std::map<F32, std::string> mTimeTrack; | ||
47 | std::map<F32, std::string>::iterator mFirstIt, mSecondIt; | ||
48 | |||
49 | // params to use | ||
50 | //std::map<std::string, LLWLParamSet> mParamList; | ||
51 | |||
52 | bool mIsRunning; | ||
53 | bool mUseLindenTime; | ||
54 | |||
55 | // simple constructor | ||
56 | LLWLAnimator(); | ||
57 | |||
58 | // update the parameters | ||
59 | void update(LLWLParamSet& curParams); | ||
46 | 60 | ||
47 | /*virtual*/ BOOL idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time); | 61 | // get time in seconds |
48 | /*virtual*/ LLDrawable* createDrawable(LLPipeline *pipeline); | 62 | //F64 getTime(void); |
49 | /*virtual*/ BOOL updateGeometry(LLDrawable *drawable); | ||
50 | 63 | ||
51 | LLColor4* getStarColors() { return mStarColors; } | 64 | // returns a float 0 - 1 saying what time of day is it? |
65 | F64 getDayTime(void); | ||
52 | 66 | ||
53 | protected: | 67 | // sets a float 0 - 1 saying what time of day it is |
54 | ~LLVOStars(); | 68 | void setDayTime(F64 dayTime); |
55 | 69 | ||
56 | void initStars(); | 70 | // set an animation track |
57 | void updateStarColors(); | 71 | void setTrack(std::map<F32, std::string>& track, |
58 | BOOL updateStarGeometry(LLDrawable *drawable); | 72 | F32 dayRate, F64 dayTime = 0, bool run = true); |
59 | 73 | ||
60 | protected: | ||
61 | LLVector3 *mStarVertices; // Star verticies | ||
62 | LLColor4 *mStarColors; // Star colors | ||
63 | F32 *mStarIntensities; // Star intensities | ||
64 | LLFace *mFace; | ||
65 | }; | 74 | }; |
66 | 75 | ||
67 | #endif | 76 | #endif // LL_WL_ANIMATOR_H |