diff options
author | McCabe Maxsted | 2009-06-07 23:14:43 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-07 23:14:43 -0700 |
commit | e0a70bea805cf07b92efabca15ffe56a777f90ac (patch) | |
tree | 2c93d38e210832e737d09cff7561373d8d5453b2 /linden/indra/newview/llmaniprotate.cpp | |
parent | 1.1 version final (diff) | |
parent | Merge branch 'sl-base-1.22' into next (diff) | |
download | meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.zip meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.gz meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.bz2 meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.xz |
Moved base up to 1.22
Diffstat (limited to 'linden/indra/newview/llmaniprotate.cpp')
-rw-r--r-- | linden/indra/newview/llmaniprotate.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llmaniprotate.cpp b/linden/indra/newview/llmaniprotate.cpp index 11b5e8c..3ed4685 100644 --- a/linden/indra/newview/llmaniprotate.cpp +++ b/linden/indra/newview/llmaniprotate.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -115,7 +115,7 @@ void LLManipRotate::handleSelect() | |||
115 | void LLManipRotate::render() | 115 | void LLManipRotate::render() |
116 | { | 116 | { |
117 | LLGLSUIDefault gls_ui; | 117 | LLGLSUIDefault gls_ui; |
118 | LLGLSNoTexture gls_no_texture; | 118 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |
119 | LLGLDepthTest gls_depth(GL_TRUE); | 119 | LLGLDepthTest gls_depth(GL_TRUE); |
120 | LLGLEnable gl_blend(GL_BLEND); | 120 | LLGLEnable gl_blend(GL_BLEND); |
121 | LLGLEnable gls_alpha_test(GL_ALPHA_TEST); | 121 | LLGLEnable gls_alpha_test(GL_ALPHA_TEST); |
@@ -838,7 +838,7 @@ void LLManipRotate::renderSnapGuides() | |||
838 | LLVector3 outer_point; | 838 | LLVector3 outer_point; |
839 | LLVector3 text_point; | 839 | LLVector3 text_point; |
840 | LLQuaternion rot(deg * DEG_TO_RAD, constraint_axis); | 840 | LLQuaternion rot(deg * DEG_TO_RAD, constraint_axis); |
841 | gGL.begin(LLVertexBuffer::LINES); | 841 | gGL.begin(LLRender::LINES); |
842 | { | 842 | { |
843 | inner_point = (projected_snap_axis * mRadiusMeters * SNAP_GUIDE_INNER_RADIUS * rot) + center; | 843 | inner_point = (projected_snap_axis * mRadiusMeters * SNAP_GUIDE_INNER_RADIUS * rot) + center; |
844 | F32 tick_length = 0.f; | 844 | F32 tick_length = 0.f; |
@@ -1017,7 +1017,7 @@ void LLManipRotate::renderSnapGuides() | |||
1017 | object_axis = object_axis * SNAP_GUIDE_INNER_RADIUS * mRadiusMeters + center; | 1017 | object_axis = object_axis * SNAP_GUIDE_INNER_RADIUS * mRadiusMeters + center; |
1018 | LLVector3 line_start = center; | 1018 | LLVector3 line_start = center; |
1019 | 1019 | ||
1020 | gGL.begin(LLVertexBuffer::LINES); | 1020 | gGL.begin(LLRender::LINES); |
1021 | { | 1021 | { |
1022 | gGL.vertex3fv(line_start.mV); | 1022 | gGL.vertex3fv(line_start.mV); |
1023 | gGL.vertex3fv(object_axis.mV); | 1023 | gGL.vertex3fv(object_axis.mV); |
@@ -1025,7 +1025,7 @@ void LLManipRotate::renderSnapGuides() | |||
1025 | gGL.end(); | 1025 | gGL.end(); |
1026 | 1026 | ||
1027 | // draw snap guide arrow | 1027 | // draw snap guide arrow |
1028 | gGL.begin(LLVertexBuffer::TRIANGLES); | 1028 | gGL.begin(LLRender::TRIANGLES); |
1029 | { | 1029 | { |
1030 | LLVector3 arrow_dir; | 1030 | LLVector3 arrow_dir; |
1031 | LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis(); | 1031 | LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis(); |
@@ -1045,7 +1045,7 @@ void LLManipRotate::renderSnapGuides() | |||
1045 | 1045 | ||
1046 | { | 1046 | { |
1047 | LLGLDepthTest gls_depth(GL_TRUE); | 1047 | LLGLDepthTest gls_depth(GL_TRUE); |
1048 | gGL.begin(LLVertexBuffer::LINES); | 1048 | gGL.begin(LLRender::LINES); |
1049 | { | 1049 | { |
1050 | gGL.vertex3fv(line_start.mV); | 1050 | gGL.vertex3fv(line_start.mV); |
1051 | gGL.vertex3fv(object_axis.mV); | 1051 | gGL.vertex3fv(object_axis.mV); |
@@ -1053,7 +1053,7 @@ void LLManipRotate::renderSnapGuides() | |||
1053 | gGL.end(); | 1053 | gGL.end(); |
1054 | 1054 | ||
1055 | // draw snap guide arrow | 1055 | // draw snap guide arrow |
1056 | gGL.begin(LLVertexBuffer::TRIANGLES); | 1056 | gGL.begin(LLRender::TRIANGLES); |
1057 | { | 1057 | { |
1058 | LLVector3 arrow_dir; | 1058 | LLVector3 arrow_dir; |
1059 | LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis(); | 1059 | LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis(); |