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/llmedia/llmediaimplexample2.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/llmedia/llmediaimplexample2.h (renamed from linden/indra/newview/llhudconnector.h) | 84 |
1 files changed, 39 insertions, 45 deletions
diff --git a/linden/indra/newview/llhudconnector.h b/linden/indra/llmedia/llmediaimplexample2.h index 3ca4725..475915d 100644 --- a/linden/indra/newview/llhudconnector.h +++ b/linden/indra/llmedia/llmediaimplexample2.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /** | 1 | /** |
2 | * @file llhudconnector.h | 2 | * @file llmediaimplexample2.h |
3 | * @brief LLHUDConnector class definition | 3 | * @brief Example 2 of a media impl concrete class |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-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,53 +29,47 @@ | |||
29 | * $/LicenseInfo$ | 29 | * $/LicenseInfo$ |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #ifndef LL_LLHUDCONNECTOR_H | 32 | #ifndef LLMEDIAIMPLEXAMPLE2_H |
33 | #define LL_LLHUDCONNECTOR_H | 33 | #define LLMEDIAIMPLEXAMPLE2_H |
34 | 34 | ||
35 | #include "llmemory.h" | 35 | #include "llmediaimplcommon.h" |
36 | #include "lldarrayptr.h" | 36 | #include "llmediaimplfactory.h" |
37 | 37 | ||
38 | #include "llhudobject.h" | 38 | class LLMediaManagerData; |
39 | #include "v4color.h" | 39 | class LLMediaImplMaker; |
40 | #include "v3math.h" | ||
41 | #include "v3dmath.h" | ||
42 | #include "llstring.h" | ||
43 | 40 | ||
44 | class LLViewerObject; | 41 | class LLMediaImplExample2 : |
45 | 42 | public LLMediaImplCommon | |
46 | class LLHUDConnector : public LLHUDObject | ||
47 | { | 43 | { |
48 | public: | 44 | public: |
49 | void setColors(const LLColor4 &color, const LLColor4 &first_color, const LLColor4 &second_color); | 45 | LLMediaImplExample2(); |
50 | void setZCompare(const BOOL zcompare); | ||
51 | void setDoFade(const BOOL do_fade); | ||
52 | |||
53 | void setLabel(const LLString &label); | ||
54 | void setTargets(LLViewerObject *first_object, LLViewerObject *second_object); | ||
55 | void setEndpoints(const BOOL &first, const BOOL &second); | ||
56 | |||
57 | friend class LLHUDObject; | ||
58 | protected: | ||
59 | LLHUDConnector(const U8 type); | ||
60 | |||
61 | /*virtual*/ void render(); | ||
62 | 46 | ||
63 | private: | 47 | static bool startup( LLMediaManagerData* init_data ); |
64 | ~LLHUDConnector(); | 48 | static bool closedown(); |
65 | 49 | ||
66 | LLString mLabel; | 50 | /* virtual */ bool init(); |
51 | /* virtual */ bool navigateTo( const std::string url ); | ||
52 | /* virtual */ bool load( const std::string url ); | ||
53 | /* virtual */ std::string getVersion(); | ||
54 | /* virtual */ bool updateMedia(); | ||
55 | /* virtual */ unsigned char* getMediaData(); | ||
56 | /* virtual */ bool reset(); | ||
57 | /* virtual */ bool setRequestedMediaSize( int width, int height ); | ||
67 | 58 | ||
68 | BOOL mDoFade; | 59 | private: |
69 | F32 mFadeRange; | 60 | unsigned char* mMediaPixels; |
70 | F32 mFadeDistance; | 61 | int mXpos; |
71 | BOOL mZCompare; | 62 | int mYpos; |
72 | 63 | }; | |
73 | LLColor4 mColor; | ||
74 | LLColor4 mFirstColor; | ||
75 | LLColor4 mSecondColor; | ||
76 | 64 | ||
77 | BOOL mDrawFirst; | 65 | class LLMediaImplExample2Maker : public LLMediaImplMaker |
78 | BOOL mDrawSecond; | 66 | { |
67 | public: | ||
68 | LLMediaImplExample2Maker(); | ||
69 | LLMediaImplExample2* create() | ||
70 | { | ||
71 | return new LLMediaImplExample2(); | ||
72 | } | ||
79 | }; | 73 | }; |
80 | 74 | ||
81 | #endif // LL_LLHUDCONNECTOR_H | 75 | #endif // LLMEDIAIMPLEXAMPLE2_H |