diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llmanipscale.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/llmanipscale.cpp')
-rw-r--r-- | linden/indra/newview/llmanipscale.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llmanipscale.cpp b/linden/indra/newview/llmanipscale.cpp index 0fa5fa5..5c9c889 100644 --- a/linden/indra/newview/llmanipscale.cpp +++ b/linden/indra/newview/llmanipscale.cpp | |||
@@ -197,7 +197,7 @@ LLManipScale::~LLManipScale() | |||
197 | void LLManipScale::render() | 197 | void LLManipScale::render() |
198 | { | 198 | { |
199 | LLGLSUIDefault gls_ui; | 199 | LLGLSUIDefault gls_ui; |
200 | LLGLSNoTexture gls_no_texture; | 200 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |
201 | LLGLDepthTest gls_depth(GL_TRUE); | 201 | LLGLDepthTest gls_depth(GL_TRUE); |
202 | LLGLEnable gl_blend(GL_BLEND); | 202 | LLGLEnable gl_blend(GL_BLEND); |
203 | LLGLEnable gls_alpha_test(GL_ALPHA_TEST); | 203 | LLGLEnable gls_alpha_test(GL_ALPHA_TEST); |
@@ -590,7 +590,7 @@ void LLManipScale::renderFaces( const LLBBox& bbox ) | |||
590 | { | 590 | { |
591 | gGL.color4fv( default_normal_color.mV ); | 591 | gGL.color4fv( default_normal_color.mV ); |
592 | LLGLDepthTest gls_depth(GL_FALSE); | 592 | LLGLDepthTest gls_depth(GL_FALSE); |
593 | gGL.begin(LLVertexBuffer::QUADS); | 593 | gGL.begin(LLRender::QUADS); |
594 | { | 594 | { |
595 | // Face 0 | 595 | // Face 0 |
596 | gGL.vertex3f(min.mV[VX], max.mV[VY], max.mV[VZ]); | 596 | gGL.vertex3f(min.mV[VX], max.mV[VY], max.mV[VZ]); |
@@ -751,7 +751,7 @@ void LLManipScale::renderCorners( const LLBBox& bbox ) | |||
751 | 751 | ||
752 | void LLManipScale::renderBoxHandle( F32 x, F32 y, F32 z ) | 752 | void LLManipScale::renderBoxHandle( F32 x, F32 y, F32 z ) |
753 | { | 753 | { |
754 | LLImageGL::unbindTexture(0); | 754 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |
755 | LLGLDepthTest gls_depth(GL_FALSE); | 755 | LLGLDepthTest gls_depth(GL_FALSE); |
756 | 756 | ||
757 | glPushMatrix(); | 757 | glPushMatrix(); |
@@ -1528,7 +1528,7 @@ void LLManipScale::renderSnapGuides(const LLBBox& bbox) | |||
1528 | { | 1528 | { |
1529 | LLColor4 tick_color = setupSnapGuideRenderPass(pass); | 1529 | LLColor4 tick_color = setupSnapGuideRenderPass(pass); |
1530 | 1530 | ||
1531 | gGL.begin(LLVertexBuffer::LINES); | 1531 | gGL.begin(LLRender::LINES); |
1532 | LLVector3 line_mid = mScaleCenter + (mScaleSnapValue * mScaleDir) + (mSnapGuideDir1 * mSnapRegimeOffset); | 1532 | LLVector3 line_mid = mScaleCenter + (mScaleSnapValue * mScaleDir) + (mSnapGuideDir1 * mSnapRegimeOffset); |
1533 | LLVector3 line_start = line_mid - (mScaleDir * (llmin(mScaleSnapValue, mSnapGuideLength * 0.5f))); | 1533 | LLVector3 line_start = line_mid - (mScaleDir * (llmin(mScaleSnapValue, mSnapGuideLength * 0.5f))); |
1534 | LLVector3 line_end = line_mid + (mScaleDir * llmin(max_point_on_scale_line - mScaleSnapValue, mSnapGuideLength * 0.5f)); | 1534 | LLVector3 line_end = line_mid + (mScaleDir * llmin(max_point_on_scale_line - mScaleSnapValue, mSnapGuideLength * 0.5f)); |
@@ -1579,7 +1579,7 @@ void LLManipScale::renderSnapGuides(const LLBBox& bbox) | |||
1579 | if (mInSnapRegime) | 1579 | if (mInSnapRegime) |
1580 | { | 1580 | { |
1581 | // draw snap guide line | 1581 | // draw snap guide line |
1582 | gGL.begin(LLVertexBuffer::LINES); | 1582 | gGL.begin(LLRender::LINES); |
1583 | LLVector3 snap_line_center = mScaleCenter + (mScaleSnapValue * mScaleDir); | 1583 | LLVector3 snap_line_center = mScaleCenter + (mScaleSnapValue * mScaleDir); |
1584 | 1584 | ||
1585 | LLVector3 snap_line_start = snap_line_center + (mSnapGuideDir1 * mSnapRegimeOffset); | 1585 | LLVector3 snap_line_start = snap_line_center + (mSnapGuideDir1 * mSnapRegimeOffset); |
@@ -1593,7 +1593,7 @@ void LLManipScale::renderSnapGuides(const LLBBox& bbox) | |||
1593 | gGL.end(); | 1593 | gGL.end(); |
1594 | 1594 | ||
1595 | // draw snap guide arrow | 1595 | // draw snap guide arrow |
1596 | gGL.begin(LLVertexBuffer::TRIANGLES); | 1596 | gGL.begin(LLRender::TRIANGLES); |
1597 | { | 1597 | { |
1598 | //gGLSNoCullFaces.set(); | 1598 | //gGLSNoCullFaces.set(); |
1599 | gGL.color4f(1.f, 1.f, 1.f, grid_alpha); | 1599 | gGL.color4f(1.f, 1.f, 1.f, grid_alpha); |
@@ -1628,7 +1628,7 @@ void LLManipScale::renderSnapGuides(const LLBBox& bbox) | |||
1628 | start_tick = -(llmin(ticks_from_scale_center_1, num_ticks_per_side1)); | 1628 | start_tick = -(llmin(ticks_from_scale_center_1, num_ticks_per_side1)); |
1629 | stop_tick = llmin(max_ticks1, num_ticks_per_side1); | 1629 | stop_tick = llmin(max_ticks1, num_ticks_per_side1); |
1630 | 1630 | ||
1631 | gGL.begin(LLVertexBuffer::LINES); | 1631 | gGL.begin(LLRender::LINES); |
1632 | // draw first row of ticks | 1632 | // draw first row of ticks |
1633 | for (S32 i = start_tick; i <= stop_tick; i++) | 1633 | for (S32 i = start_tick; i <= stop_tick; i++) |
1634 | { | 1634 | { |