/indra/newview/llhudrender.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 59 lines · 24 code · 8 blank · 27 comment · 0 complexity · 733467064beb64a475036fab7174ed8e MD5 · raw file

  1. /**
  2. * @file llhudrender.h
  3. * @brief LLHUDRender 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_LLHUDRENDER_H
  27. #define LL_LLHUDRENDER_H
  28. #include "llfontgl.h"
  29. class LLVector3;
  30. class LLFontGL;
  31. // Utility classes for rendering HUD elements
  32. void hud_render_text(const LLWString &wstr,
  33. const LLVector3 &pos_agent,
  34. const LLFontGL &font,
  35. const U8 style,
  36. const LLFontGL::ShadowType,
  37. const F32 x_offset,
  38. const F32 y_offset,
  39. const LLColor4& color,
  40. const BOOL orthographic);
  41. // Legacy, slower
  42. void hud_render_utf8text(const std::string &str,
  43. const LLVector3 &pos_agent,
  44. const LLFontGL &font,
  45. const U8 style,
  46. const LLFontGL::ShadowType,
  47. const F32 x_offset,
  48. const F32 y_offset,
  49. const LLColor4& color,
  50. const BOOL orthographic);
  51. #endif //LL_LLHUDRENDER_H