aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffecttrail.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llhudeffecttrail.h
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llhudeffecttrail.h')
-rw-r--r--linden/indra/newview/llhudeffecttrail.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/linden/indra/newview/llhudeffecttrail.h b/linden/indra/newview/llhudeffecttrail.h
new file mode 100644
index 0000000..5602d23
--- /dev/null
+++ b/linden/indra/newview/llhudeffecttrail.h
@@ -0,0 +1,95 @@
1/**
2 * @file llhudeffecttrail.h
3 * @brief LLHUDEffectSpiral class definition
4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 *
7 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLHUDEFFECTTRAIL_H
29#define LL_LLHUDEFFECTTRAIL_H
30
31#include "llhudeffect.h"
32
33#include "llframetimer.h"
34
35#include "llinterp.h"
36#include "llviewerpartsim.h"
37
38class LLViewerObject;
39
40const U32 NUM_TRAIL_POINTS = 40;
41
42
43class LLHUDEffectSpiral : public LLHUDEffect
44{
45public:
46 /*virtual*/ void markDead();
47 /*virtual*/ void setTargetObject(LLViewerObject* objectp);
48 void setVMag(F32 vmag) { mVMag = vmag; }
49 void setVOffset(F32 offset) { mVOffset = offset; }
50 void setInitialRadius(F32 radius) { mInitialRadius = radius; }
51 void setFinalRadius(F32 radius) { mFinalRadius = radius; }
52 void setScaleBase(F32 scale) { mScaleBase = scale; }
53 void setScaleVar(F32 scale) { mScaleVar = scale; }
54 void setSpinRate(F32 rate) { mSpinRate = rate; }
55 void setFlickerRate(F32 rate) { mFlickerRate = rate; }
56
57 // Start the effect playing locally.
58 void triggerLocal();
59
60 friend class LLHUDObject;
61protected:
62 LLHUDEffectSpiral(const U8 type);
63 ~LLHUDEffectSpiral();
64
65 /*virtual*/ void render();
66 /*virtual*/ void packData(LLMessageSystem *mesgsys);
67 /*virtual*/ void unpackData(LLMessageSystem *mesgsys, S32 blocknum);
68private:
69 /*
70 void setupParticle(const S32 i, const F32 start_time);
71
72
73 LLInterpExp<F32> mRadius[NUM_TRAIL_POINTS];
74 LLInterpLinear<LLVector3d> mDistance[NUM_TRAIL_POINTS];
75 LLInterpLinear<F32> mScale[NUM_TRAIL_POINTS];
76 F32 mOffset[NUM_TRAIL_POINTS];
77 */
78
79 BOOL mbInit;
80 LLPointer<LLViewerPartSource> mPartSourcep;
81
82 F32 mKillTime;
83 F32 mVMag;
84 F32 mVOffset;
85 F32 mInitialRadius;
86 F32 mFinalRadius;
87 F32 mSpinRate;
88 F32 mFlickerRate;
89 F32 mScaleBase;
90 F32 mScaleVar;
91 LLFrameTimer mTimer;
92 LLInterpLinear<F32> mFadeInterp;
93};
94
95#endif // LL_LLHUDEFFECTGLOW_H