aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffectlookat.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llhudeffectlookat.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llhudeffectlookat.cpp')
-rw-r--r--linden/indra/newview/llhudeffectlookat.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/linden/indra/newview/llhudeffectlookat.cpp b/linden/indra/newview/llhudeffectlookat.cpp
index 207946d..4cd69bb 100644
--- a/linden/indra/newview/llhudeffectlookat.cpp
+++ b/linden/indra/newview/llhudeffectlookat.cpp
@@ -33,6 +33,8 @@
33 33
34#include "llhudeffectlookat.h" 34#include "llhudeffectlookat.h"
35 35
36#include "llglimmediate.h"
37
36#include "message.h" 38#include "message.h"
37#include "llagent.h" 39#include "llagent.h"
38#include "llvoavatar.h" 40#include "llvoavatar.h"
@@ -498,19 +500,19 @@ void LLHUDEffectLookAt::render()
498 glPushMatrix(); 500 glPushMatrix();
499 glTranslatef(target.mV[VX], target.mV[VY], target.mV[VZ]); 501 glTranslatef(target.mV[VX], target.mV[VY], target.mV[VZ]);
500 glScalef(0.3f, 0.3f, 0.3f); 502 glScalef(0.3f, 0.3f, 0.3f);
501 glBegin(GL_LINES); 503 gGL.begin(GL_LINES);
502 { 504 {
503 LLColor3 color = (*mAttentions)[mTargetType].mColor; 505 LLColor3 color = (*mAttentions)[mTargetType].mColor;
504 glColor3f(color.mV[VRED], color.mV[VGREEN], color.mV[VBLUE]); 506 gGL.color3f(color.mV[VRED], color.mV[VGREEN], color.mV[VBLUE]);
505 glVertex3f(-1.f, 0.f, 0.f); 507 gGL.vertex3f(-1.f, 0.f, 0.f);
506 glVertex3f(1.f, 0.f, 0.f); 508 gGL.vertex3f(1.f, 0.f, 0.f);
507 509
508 glVertex3f(0.f, -1.f, 0.f); 510 gGL.vertex3f(0.f, -1.f, 0.f);
509 glVertex3f(0.f, 1.f, 0.f); 511 gGL.vertex3f(0.f, 1.f, 0.f);
510 512
511 glVertex3f(0.f, 0.f, -1.f); 513 gGL.vertex3f(0.f, 0.f, -1.f);
512 glVertex3f(0.f, 0.f, 1.f); 514 gGL.vertex3f(0.f, 0.f, 1.f);
513 } glEnd(); 515 } gGL.end();
514 glPopMatrix(); 516 glPopMatrix();
515 } 517 }
516} 518}