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

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