aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudtext.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llhudtext.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llhudtext.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/linden/indra/newview/llhudtext.cpp b/linden/indra/newview/llhudtext.cpp
index 26df22a..c45c284 100644
--- a/linden/indra/newview/llhudtext.cpp
+++ b/linden/indra/newview/llhudtext.cpp
@@ -1,3 +1,4 @@
1
1/** 2/**
2 * @file llhudtext.cpp 3 * @file llhudtext.cpp
3 * @brief LLHUDText class implementation 4 * @brief LLHUDText class implementation
@@ -921,8 +922,7 @@ void LLHUDText::setLOD(S32 lod)
921{ 922{
922 mLOD = lod; 923 mLOD = lod;
923 //RN: uncomment this to visualize LOD levels 924 //RN: uncomment this to visualize LOD levels
924 //char label[255]; 925 //std::string label = llformat("%d", lod);
925 //sprintf(label, "%d", lod);
926 //setLabel(label); 926 //setLabel(label);
927} 927}
928 928
@@ -961,6 +961,21 @@ void LLHUDText::renderAllHUD()
961 } 961 }
962} 962}
963 963
964void LLHUDText::shiftAll(const LLVector3& offset)
965{
966 TextObjectIterator text_it;
967 for (text_it = sTextObjects.begin(); text_it != sTextObjects.end(); ++text_it)
968 {
969 LLHUDText *textp = text_it->get();
970 textp->shift(offset);
971 }
972}
973
974void LLHUDText::shift(const LLVector3& offset)
975{
976 mPositionAgent += offset;
977}
978
964//static 979//static
965void LLHUDText::addPickable(std::set<LLViewerObject*> &pick_list) 980void LLHUDText::addPickable(std::set<LLViewerObject*> &pick_list)
966{ 981{