diff options
author | Jacek Antonelli | 2008-08-15 23:45:49 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:49 -0500 |
commit | 8538c0f35dc5fb780f02930256e627e5266ede4a (patch) | |
tree | 58950646aae6534fafe680a5cf879d01cd99d254 /linden/indra/newview/llworldmapview.cpp | |
parent | Second Life viewer sources 1.20.5 (diff) | |
download | meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.zip meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.gz meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.bz2 meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.xz |
Second Life viewer sources 1.20.6
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r-- | linden/indra/newview/llworldmapview.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp index ccf5903..1cc4921 100644 --- a/linden/indra/newview/llworldmapview.cpp +++ b/linden/indra/newview/llworldmapview.cpp | |||
@@ -381,7 +381,7 @@ void LLWorldMapView::draw() | |||
381 | glColorMask(TRUE, TRUE, TRUE, FALSE); | 381 | glColorMask(TRUE, TRUE, TRUE, FALSE); |
382 | gGL.color4f(1.f, 1.f, 1.f, layer_alpha); | 382 | gGL.color4f(1.f, 1.f, 1.f, layer_alpha); |
383 | 383 | ||
384 | gGL.begin(GL_QUADS); | 384 | gGL.begin(LLVertexBuffer::QUADS); |
385 | gGL.texCoord2f(0.0f, 1.0f); | 385 | gGL.texCoord2f(0.0f, 1.0f); |
386 | gGL.vertex3f(left, top, -1.0f); | 386 | gGL.vertex3f(left, top, -1.0f); |
387 | gGL.texCoord2f(0.0f, 0.0f); | 387 | gGL.texCoord2f(0.0f, 0.0f); |
@@ -397,7 +397,7 @@ void LLWorldMapView::draw() | |||
397 | glColorMask(FALSE, FALSE, FALSE, TRUE); | 397 | glColorMask(FALSE, FALSE, FALSE, TRUE); |
398 | gGL.color4f(1.f, 1.f, 1.f, 1.f); | 398 | gGL.color4f(1.f, 1.f, 1.f, 1.f); |
399 | 399 | ||
400 | gGL.begin(GL_QUADS); | 400 | gGL.begin(LLVertexBuffer::QUADS); |
401 | gGL.texCoord2f(0.0f, 1.0f); | 401 | gGL.texCoord2f(0.0f, 1.0f); |
402 | gGL.vertex2f(left, top); | 402 | gGL.vertex2f(left, top); |
403 | gGL.texCoord2f(0.0f, 0.0f); | 403 | gGL.texCoord2f(0.0f, 0.0f); |
@@ -538,7 +538,7 @@ void LLWorldMapView::draw() | |||
538 | F32 alpha = sim_alpha * info->mAlpha; | 538 | F32 alpha = sim_alpha * info->mAlpha; |
539 | gGL.color4f(1.f, 1.0f, 1.0f, alpha); | 539 | gGL.color4f(1.f, 1.0f, 1.0f, alpha); |
540 | 540 | ||
541 | gGL.begin(GL_QUADS); | 541 | gGL.begin(LLVertexBuffer::QUADS); |
542 | gGL.texCoord2f(0.f, 1.f); | 542 | gGL.texCoord2f(0.f, 1.f); |
543 | gGL.vertex3f(left, top, 0.f); | 543 | gGL.vertex3f(left, top, 0.f); |
544 | gGL.texCoord2f(0.f, 0.f); | 544 | gGL.texCoord2f(0.f, 0.f); |
@@ -553,7 +553,7 @@ void LLWorldMapView::draw() | |||
553 | { | 553 | { |
554 | LLViewerImage::bindTexture(overlayimage); | 554 | LLViewerImage::bindTexture(overlayimage); |
555 | gGL.color4f(1.f, 1.f, 1.f, alpha); | 555 | gGL.color4f(1.f, 1.f, 1.f, alpha); |
556 | gGL.begin(GL_QUADS); | 556 | gGL.begin(LLVertexBuffer::QUADS); |
557 | gGL.texCoord2f(0.f, 1.f); | 557 | gGL.texCoord2f(0.f, 1.f); |
558 | gGL.vertex3f(left, top, -0.5f); | 558 | gGL.vertex3f(left, top, -0.5f); |
559 | gGL.texCoord2f(0.f, 0.f); | 559 | gGL.texCoord2f(0.f, 0.f); |
@@ -574,7 +574,7 @@ void LLWorldMapView::draw() | |||
574 | gGL.color4f(1.f, 1.f, 1.f, 1.f); | 574 | gGL.color4f(1.f, 1.f, 1.f, 1.f); |
575 | 575 | ||
576 | LLGLSNoTexture gls_no_texture; | 576 | LLGLSNoTexture gls_no_texture; |
577 | gGL.begin(GL_QUADS); | 577 | gGL.begin(LLVertexBuffer::QUADS); |
578 | gGL.vertex2f(left, top); | 578 | gGL.vertex2f(left, top); |
579 | gGL.vertex2f(left, bottom); | 579 | gGL.vertex2f(left, bottom); |
580 | gGL.vertex2f(right, bottom); | 580 | gGL.vertex2f(right, bottom); |
@@ -593,7 +593,7 @@ void LLWorldMapView::draw() | |||
593 | gGL.color4f(0.2f, 0.0f, 0.0f, 0.4f); | 593 | gGL.color4f(0.2f, 0.0f, 0.0f, 0.4f); |
594 | 594 | ||
595 | LLGLSNoTexture gls_no_texture; | 595 | LLGLSNoTexture gls_no_texture; |
596 | gGL.begin(GL_QUADS); | 596 | gGL.begin(LLVertexBuffer::QUADS); |
597 | gGL.vertex2f(left, top); | 597 | gGL.vertex2f(left, top); |
598 | gGL.vertex2f(left, bottom); | 598 | gGL.vertex2f(left, bottom); |
599 | gGL.vertex2f(right, bottom); | 599 | gGL.vertex2f(right, bottom); |
@@ -610,7 +610,7 @@ void LLWorldMapView::draw() | |||
610 | 610 | ||
611 | LLGLSNoTexture gls_no_texture; | 611 | LLGLSNoTexture gls_no_texture; |
612 | gGL.color3f(1.f, 0.f, 0.f); | 612 | gGL.color3f(1.f, 0.f, 0.f); |
613 | gGL.begin(GL_LINES); | 613 | gGL.begin(LLVertexBuffer::LINES); |
614 | gGL.vertex2f(left, top); | 614 | gGL.vertex2f(left, top); |
615 | gGL.vertex2f(right, bottom); | 615 | gGL.vertex2f(right, bottom); |
616 | gGL.vertex2f(left, bottom); | 616 | gGL.vertex2f(left, bottom); |
@@ -971,7 +971,7 @@ void LLWorldMapView::drawFrustum() | |||
971 | 971 | ||
972 | // Draw triangle with more alpha in far pixels to make it | 972 | // Draw triangle with more alpha in far pixels to make it |
973 | // fade out in distance. | 973 | // fade out in distance. |
974 | gGL.begin( GL_TRIANGLES ); | 974 | gGL.begin( LLVertexBuffer::TRIANGLES ); |
975 | gGL.color4f(1.f, 1.f, 1.f, 0.25f); | 975 | gGL.color4f(1.f, 1.f, 1.f, 0.25f); |
976 | gGL.vertex2f( 0, 0 ); | 976 | gGL.vertex2f( 0, 0 ); |
977 | 977 | ||
@@ -1181,7 +1181,7 @@ static void drawDot(F32 x_pixels, F32 y_pixels, | |||
1181 | gGL.color4fv( color.mV ); | 1181 | gGL.color4fv( color.mV ); |
1182 | LLUI::setLineWidth(1.5f); | 1182 | LLUI::setLineWidth(1.5f); |
1183 | F32 h_bar = relative_z > HEIGHT_THRESHOLD ? top : bottom; // horizontal bar Y | 1183 | F32 h_bar = relative_z > HEIGHT_THRESHOLD ? top : bottom; // horizontal bar Y |
1184 | gGL.begin( GL_LINES ); | 1184 | gGL.begin( LLVertexBuffer::LINES ); |
1185 | gGL.vertex2f(center, top); | 1185 | gGL.vertex2f(center, top); |
1186 | gGL.vertex2f(left, h_bar); | 1186 | gGL.vertex2f(left, h_bar); |
1187 | gGL.vertex2f(right, h_bar); | 1187 | gGL.vertex2f(right, h_bar); |