diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/lltracker.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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 '')
-rw-r--r-- | linden/indra/newview/lltracker.cpp | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/linden/indra/newview/lltracker.cpp b/linden/indra/newview/lltracker.cpp index 6dfc700..c1c060c 100644 --- a/linden/indra/newview/lltracker.cpp +++ b/linden/indra/newview/lltracker.cpp | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "lldarray.h" | 36 | #include "lldarray.h" |
37 | #include "llfontgl.h" | 37 | #include "llfontgl.h" |
38 | #include "llgl.h" | 38 | #include "llgl.h" |
39 | #include "llglimmediate.h" | ||
39 | #include "llinventory.h" | 40 | #include "llinventory.h" |
40 | #include "llmemory.h" | 41 | #include "llmemory.h" |
41 | #include "llstring.h" | 42 | #include "llstring.h" |
@@ -50,7 +51,6 @@ | |||
50 | #include "llagent.h" | 51 | #include "llagent.h" |
51 | #include "llcallingcard.h" | 52 | #include "llcallingcard.h" |
52 | #include "llcolorscheme.h" | 53 | #include "llcolorscheme.h" |
53 | #include "llcylinder.h" | ||
54 | #include "llfloaterworldmap.h" | 54 | #include "llfloaterworldmap.h" |
55 | #include "llhudtext.h" | 55 | #include "llhudtext.h" |
56 | #include "llhudview.h" | 56 | #include "llhudview.h" |
@@ -448,24 +448,24 @@ void draw_shockwave(F32 center_z, F32 t, S32 steps, LLColor4 color) | |||
448 | F32 y = 0.f; | 448 | F32 y = 0.f; |
449 | 449 | ||
450 | LLColor4 ccol = LLColor4(1,1,1,(1.f-t)*0.25f); | 450 | LLColor4 ccol = LLColor4(1,1,1,(1.f-t)*0.25f); |
451 | glBegin(GL_TRIANGLE_FAN); | 451 | gGL.begin(GL_TRIANGLE_FAN); |
452 | glColor4fv(ccol.mV); | 452 | gGL.color4fv(ccol.mV); |
453 | glVertex3f(0.f, 0.f, center_z); | 453 | gGL.vertex3f(0.f, 0.f, center_z); |
454 | // make sure circle is complete | 454 | // make sure circle is complete |
455 | steps += 1; | 455 | steps += 1; |
456 | 456 | ||
457 | color.mV[3] = (1.f-t*t); | 457 | color.mV[3] = (1.f-t*t); |
458 | 458 | ||
459 | glColor4fv(color.mV); | 459 | gGL.color4fv(color.mV); |
460 | while( steps-- ) | 460 | while( steps-- ) |
461 | { | 461 | { |
462 | // Successive rotations | 462 | // Successive rotations |
463 | glVertex3f( x, y, center_z ); | 463 | gGL.vertex3f( x, y, center_z ); |
464 | F32 x_new = x * cos_delta - y * sin_delta; | 464 | F32 x_new = x * cos_delta - y * sin_delta; |
465 | y = x * sin_delta + y * cos_delta; | 465 | y = x * sin_delta + y * cos_delta; |
466 | x = x_new; | 466 | x = x_new; |
467 | } | 467 | } |
468 | glEnd(); | 468 | gGL.end(); |
469 | } | 469 | } |
470 | 470 | ||
471 | 471 | ||
@@ -508,8 +508,7 @@ void LLTracker::renderBeacon(LLVector3d pos_global, | |||
508 | 508 | ||
509 | draw_shockwave(1024.f, gRenderStartTime.getElapsedTimeF32(), 32, fogged_color); | 509 | draw_shockwave(1024.f, gRenderStartTime.getElapsedTimeF32(), 32, fogged_color); |
510 | 510 | ||
511 | //glScalef(1.f, 1.f, 1000.f); | 511 | gGL.color4fv(fogged_color.mV); |
512 | glColor4fv(fogged_color.mV); | ||
513 | const U32 BEACON_VERTS = 256; | 512 | const U32 BEACON_VERTS = 256; |
514 | const F32 step = 1024.0f/BEACON_VERTS; | 513 | const F32 step = 1024.0f/BEACON_VERTS; |
515 | 514 | ||
@@ -539,23 +538,23 @@ void LLTracker::renderBeacon(LLVector3d pos_global, | |||
539 | an *= 2.f; | 538 | an *= 2.f; |
540 | an += 1.0f+dr; | 539 | an += 1.0f+dr; |
541 | 540 | ||
542 | glBegin(GL_TRIANGLE_STRIP); | 541 | gGL.begin(GL_TRIANGLE_STRIP); |
543 | glColor4fv(col_edge.mV); | 542 | gGL.color4fv(col_edge.mV); |
544 | glVertex3f(-x*a, -y*a, z); | 543 | gGL.vertex3f(-x*a, -y*a, z); |
545 | glColor4fv(col_edge_next.mV); | 544 | gGL.color4fv(col_edge_next.mV); |
546 | glVertex3f(-x*an, -y*an, z_next); | 545 | gGL.vertex3f(-x*an, -y*an, z_next); |
547 | 546 | ||
548 | glColor4fv(c_col.mV); | 547 | gGL.color4fv(c_col.mV); |
549 | glVertex3f(0, 0, z); | 548 | gGL.vertex3f(0, 0, z); |
550 | glColor4fv(col_next.mV); | 549 | gGL.color4fv(col_next.mV); |
551 | glVertex3f(0, 0, z_next); | 550 | gGL.vertex3f(0, 0, z_next); |
552 | 551 | ||
553 | glColor4fv(col_edge.mV); | 552 | gGL.color4fv(col_edge.mV); |
554 | glVertex3f(x*a,y*a,z); | 553 | gGL.vertex3f(x*a,y*a,z); |
555 | glColor4fv(col_edge_next.mV); | 554 | gGL.color4fv(col_edge_next.mV); |
556 | glVertex3f(x*an,y*an,z_next); | 555 | gGL.vertex3f(x*an,y*an,z_next); |
557 | 556 | ||
558 | glEnd(); | 557 | gGL.end(); |
559 | } | 558 | } |
560 | 559 | ||
561 | //gCylinder.render(1000); | 560 | //gCylinder.render(1000); |