diff options
Diffstat (limited to 'linden/indra/newview/llviewerjointshape.h')
-rw-r--r-- | linden/indra/newview/llviewerjointshape.h | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/linden/indra/newview/llviewerjointshape.h b/linden/indra/newview/llviewerjointshape.h deleted file mode 100644 index 91131c7..0000000 --- a/linden/indra/newview/llviewerjointshape.h +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | /** | ||
2 | * @file llviewerjointshape.h | ||
3 | * @brief Implementation of LLViewerJointShape class | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2001-2008, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | |||
32 | #ifndef LL_LLVIEWERJOINTSHAPE_H | ||
33 | #define LL_LLVIEWERJOINTSHAPE_H | ||
34 | |||
35 | #include "llviewerjoint.h" | ||
36 | #include "llviewerimage.h" | ||
37 | |||
38 | //----------------------------------------------------------------------------- | ||
39 | // class LLViewerJointShape | ||
40 | //----------------------------------------------------------------------------- | ||
41 | class LLViewerJointShape : | ||
42 | public LLViewerJoint | ||
43 | { | ||
44 | public: | ||
45 | enum ShapeType | ||
46 | { | ||
47 | ST_NULL, | ||
48 | ST_CUBE, | ||
49 | ST_SPHERE, | ||
50 | ST_CYLINDER | ||
51 | }; | ||
52 | |||
53 | protected: | ||
54 | ShapeType mType; | ||
55 | LLColor4 mColor; | ||
56 | LLPointer<LLViewerImage> mTexture; | ||
57 | |||
58 | static F32 sColorScale; | ||
59 | |||
60 | public: | ||
61 | |||
62 | // Constructor | ||
63 | LLViewerJointShape(); | ||
64 | LLViewerJointShape( ShapeType type, F32 red, F32 green, F32 blue, F32 alpha ); | ||
65 | |||
66 | // Destructor | ||
67 | virtual ~LLViewerJointShape(); | ||
68 | |||
69 | // Gets the shape type | ||
70 | ShapeType getType(); | ||
71 | |||
72 | // Sets the shape type | ||
73 | void setType( ShapeType type ); | ||
74 | |||
75 | // Gets the shape color | ||
76 | void getColor( F32 *red, F32 *green, F32 *blue, F32 *alpha ); | ||
77 | |||
78 | // Sets the color scale factor applied to all subsequent setColor() calls. | ||
79 | static void setColorScale( F32 factor ) { sColorScale = factor; } | ||
80 | |||
81 | // Sets the shape color | ||
82 | void setColor( F32 red, F32 green, F32 blue, F32 alpha ); | ||
83 | |||
84 | // Gets the shape texture | ||
85 | LLViewerImage *getTexture(); | ||
86 | |||
87 | // Sets the shape texture | ||
88 | void setTexture( LLViewerImage *texture ); | ||
89 | |||
90 | virtual void drawBone(); | ||
91 | virtual BOOL isTransparent(); | ||
92 | /*virutal*/ BOOL isAnimatable() { return FALSE; } | ||
93 | /*virtual*/ U32 drawShape( F32 pixelArea, BOOL first_pass ); | ||
94 | }; | ||
95 | |||
96 | #endif // LL_LLVIEWERJOINTSHAPE_H | ||