PageRenderTime 23ms CodeModel.GetById 12ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llhudmanager.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 65 lines | 25 code | 12 blank | 28 comment | 0 complexity | ca6f78d2d4aa5300fe9a321b20bc7181 MD5 | raw file
 1/** 
 2 * @file llhudmanager.h
 3 * @brief LLHUDManager class definition
 4 *
 5 * $LicenseInfo:firstyear=2002&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLHUDMANAGER_H
28#define LL_LLHUDMANAGER_H
29
30// Responsible for managing all HUD elements.
31
32#include "llhudobject.h"
33#include "lldarrayptr.h"
34
35class LLViewerObject;
36class LLHUDEffect;
37//Ventrella 9/16/05
38class LLHUDAnimalControls;
39// End Ventrella
40class LLMessageSystem;
41
42class LLHUDManager : public LLSingleton<LLHUDManager>
43{
44public:
45	LLHUDManager();
46	~LLHUDManager();
47
48	LLHUDEffect *createViewerEffect(const U8 type, BOOL send_to_sim = TRUE, BOOL originated_here = TRUE);
49
50	void updateEffects();
51	void sendEffects();
52	void cleanupEffects();
53
54	static void shutdownClass();
55
56	static void processViewerEffect(LLMessageSystem *mesgsys, void **user_data);
57
58	static LLColor4 sParentColor;
59	static LLColor4 sChildColor;
60
61protected:
62	LLDynamicArrayPtr<LLPointer<LLHUDEffect>				> mHUDEffects;
63};
64
65#endif // LL_LLHUDMANAGER_H