PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llvotextbubble.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 66 lines | 31 code | 10 blank | 25 comment | 0 complexity | c225bc8fabb2c0a359f8c52190c9856e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llvotextbubble.h
  3. * @brief Description of LLVORock class, which a derivation of LLViewerObject
  4. *
  5. * $LicenseInfo:firstyear=2001&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_LLVOTEXTBUBBLE_H
  27. #define LL_LLVOTEXTBUBBLE_H
  28. #include "llviewerobject.h"
  29. #include "llframetimer.h"
  30. class LLVOTextBubble : public LLAlphaObject
  31. {
  32. public:
  33. LLVOTextBubble(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp);
  34. /*virtual*/ BOOL isActive() const; // Whether this object needs to do an idleUpdate.
  35. /*virtual*/ BOOL idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time);
  36. /*virtual*/ void updateTextures();
  37. /*virtual*/ LLDrawable* createDrawable(LLPipeline *pipeline);
  38. /*virtual*/ BOOL updateGeometry(LLDrawable *drawable);
  39. /*virtual*/ BOOL updateLOD();
  40. /*virtual*/ void updateFaceSize(S32 idx);
  41. /*virtual*/ void getGeometry(S32 idx,
  42. LLStrider<LLVector3>& verticesp,
  43. LLStrider<LLVector3>& normalsp,
  44. LLStrider<LLVector2>& texcoordsp,
  45. LLStrider<LLColor4U>& colorsp,
  46. LLStrider<U16>& indicesp);
  47. virtual U32 getPartitionType() const;
  48. LLColor4 mColor;
  49. S32 mLOD;
  50. BOOL mVolumeChanged;
  51. protected:
  52. ~LLVOTextBubble();
  53. BOOL setVolume(const LLVolumeParams &volume_params, const S32 detail, bool unique_volume = false);
  54. LLFrameTimer mUpdateTimer;
  55. };
  56. #endif // LL_VO_TEXT_BUBBLE