/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. #ifndef LL_LLHUDMANAGER_H
  27. #define LL_LLHUDMANAGER_H
  28. // Responsible for managing all HUD elements.
  29. #include "llhudobject.h"
  30. #include "lldarrayptr.h"
  31. class LLViewerObject;
  32. class LLHUDEffect;
  33. //Ventrella 9/16/05
  34. class LLHUDAnimalControls;
  35. // End Ventrella
  36. class LLMessageSystem;
  37. class LLHUDManager : public LLSingleton<LLHUDManager>
  38. {
  39. public:
  40. LLHUDManager();
  41. ~LLHUDManager();
  42. LLHUDEffect *createViewerEffect(const U8 type, BOOL send_to_sim = TRUE, BOOL originated_here = TRUE);
  43. void updateEffects();
  44. void sendEffects();
  45. void cleanupEffects();
  46. static void shutdownClass();
  47. static void processViewerEffect(LLMessageSystem *mesgsys, void **user_data);
  48. static LLColor4 sParentColor;
  49. static LLColor4 sChildColor;
  50. protected:
  51. LLDynamicArrayPtr<LLPointer<LLHUDEffect> > mHUDEffects;
  52. };
  53. #endif // LL_LLHUDMANAGER_H