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/llsurface.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 'linden/indra/newview/llsurface.cpp')
-rw-r--r-- | linden/indra/newview/llsurface.cpp | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/linden/indra/newview/llsurface.cpp b/linden/indra/newview/llsurface.cpp index 9e23713..b5eb902 100644 --- a/linden/indra/newview/llsurface.cpp +++ b/linden/indra/newview/llsurface.cpp | |||
@@ -663,83 +663,6 @@ BOOL LLSurface::idleUpdate(F32 max_update_time) | |||
663 | return did_update; | 663 | return did_update; |
664 | } | 664 | } |
665 | 665 | ||
666 | // TODO -- move this to LLViewerRegion class | ||
667 | void LLSurface::renderSurfaceBounds() | ||
668 | { | ||
669 | // Shows the edge of the surface, so that visibility across regions can be seen | ||
670 | LLVector3 origin_agent = getOriginAgent(); | ||
671 | |||
672 | glPushMatrix(); | ||
673 | LLGLSNoTexture no_texture; | ||
674 | |||
675 | F32 region_width_meters = gWorldPointer->getRegionWidthInMeters(); | ||
676 | glTranslatef(origin_agent.mV[VX] + (region_width_meters * 0.005f), | ||
677 | origin_agent.mV[VY] + (region_width_meters * 0.005f), 0.f); | ||
678 | |||
679 | glColor4ub(0, 128, 0, 64); | ||
680 | |||
681 | F32 length = region_width_meters * 0.995f; | ||
682 | F32 height = length/8.0f; | ||
683 | |||
684 | glBegin(GL_QUADS); | ||
685 | glVertex3f(length, 0, 0); | ||
686 | glVertex3f(0,0, 0); | ||
687 | glVertex3f(0,0, height); | ||
688 | glVertex3f(length,0, height); | ||
689 | |||
690 | glVertex3f(length,0, height); | ||
691 | glVertex3f(0,0, height); | ||
692 | glVertex3f(0,0, 0); | ||
693 | glVertex3f(length, 0, 0); | ||
694 | glEnd(); | ||
695 | |||
696 | glTranslatef(length, 0, 0); | ||
697 | glRotated(90, 0, 0, 1); | ||
698 | glBegin(GL_QUADS); | ||
699 | glVertex3f(length, 0, 0); | ||
700 | glVertex3f(0,0, 0); | ||
701 | glVertex3f(0,0, height); | ||
702 | glVertex3f(length,0, height); | ||
703 | |||
704 | glVertex3f(length,0, height); | ||
705 | glVertex3f(0,0, height); | ||
706 | glVertex3f(0,0, 0); | ||
707 | glVertex3f(length, 0, 0); | ||
708 | |||
709 | glEnd(); | ||
710 | glTranslatef(length, 0, 0); | ||
711 | glRotated(90, 0, 0, 1); | ||
712 | glBegin(GL_QUADS); | ||
713 | glVertex3f(length, 0, 0); | ||
714 | glVertex3f(0,0, 0); | ||
715 | glVertex3f(0,0, height); | ||
716 | glVertex3f(length,0, height); | ||
717 | |||
718 | glVertex3f(length,0, height); | ||
719 | glVertex3f(0,0, height); | ||
720 | glVertex3f(0,0, 0); | ||
721 | glVertex3f(length, 0, 0); | ||
722 | glEnd(); | ||
723 | glTranslatef(length, 0, 0); | ||
724 | glRotated(90, 0, 0, 1); | ||
725 | glBegin(GL_QUADS); | ||
726 | glVertex3f(length, 0, 0); | ||
727 | glVertex3f(0,0, 0); | ||
728 | glVertex3f(0,0, height); | ||
729 | glVertex3f(length,0, height); | ||
730 | |||
731 | glVertex3f(length,0, height); | ||
732 | glVertex3f(0,0, height); | ||
733 | glVertex3f(0,0, 0); | ||
734 | glVertex3f(length, 0, 0); | ||
735 | glEnd(); | ||
736 | glTranslatef(length, 0, 0); | ||
737 | glRotated(90, 0, 0, 1); | ||
738 | |||
739 | glPopMatrix(); | ||
740 | } | ||
741 | |||
742 | |||
743 | void LLSurface::decompressDCTPatch(LLBitPack &bitpack, LLGroupHeader *gopp, BOOL b_large_patch) | 666 | void LLSurface::decompressDCTPatch(LLBitPack &bitpack, LLGroupHeader *gopp, BOOL b_large_patch) |
744 | { | 667 | { |
745 | 668 | ||