aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmaniptranslate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llmaniptranslate.cpp')
-rw-r--r--linden/indra/newview/llmaniptranslate.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/newview/llmaniptranslate.cpp b/linden/indra/newview/llmaniptranslate.cpp
index 7d729a6..ac41068 100644
--- a/linden/indra/newview/llmaniptranslate.cpp
+++ b/linden/indra/newview/llmaniptranslate.cpp
@@ -1253,7 +1253,7 @@ void LLManipTranslate::renderSnapGuides()
1253 { 1253 {
1254 LLColor4 line_color = setupSnapGuideRenderPass(pass); 1254 LLColor4 line_color = setupSnapGuideRenderPass(pass);
1255 1255
1256 gGL.begin(GL_LINES); 1256 gGL.begin(LLVertexBuffer::LINES);
1257 { 1257 {
1258 LLVector3 line_start = selection_center + (mSnapOffsetMeters * mSnapOffsetAxis) + (translate_axis * (guide_size_meters * 0.5f + offset_nearest_grid_unit)); 1258 LLVector3 line_start = selection_center + (mSnapOffsetMeters * mSnapOffsetAxis) + (translate_axis * (guide_size_meters * 0.5f + offset_nearest_grid_unit));
1259 LLVector3 line_end = selection_center + (mSnapOffsetMeters * mSnapOffsetAxis) - (translate_axis * (guide_size_meters * 0.5f + offset_nearest_grid_unit)); 1259 LLVector3 line_end = selection_center + (mSnapOffsetMeters * mSnapOffsetAxis) - (translate_axis * (guide_size_meters * 0.5f + offset_nearest_grid_unit));
@@ -1329,7 +1329,7 @@ void LLManipTranslate::renderSnapGuides()
1329 LLVector3 line_start = selection_center - mSnapOffsetAxis * mSnapOffsetMeters; 1329 LLVector3 line_start = selection_center - mSnapOffsetAxis * mSnapOffsetMeters;
1330 LLVector3 line_end = selection_center + mSnapOffsetAxis * mSnapOffsetMeters; 1330 LLVector3 line_end = selection_center + mSnapOffsetAxis * mSnapOffsetMeters;
1331 1331
1332 gGL.begin(GL_LINES); 1332 gGL.begin(LLVertexBuffer::LINES);
1333 { 1333 {
1334 gGL.color4f(line_color.mV[VX], line_color.mV[VY], line_color.mV[VZ], line_color.mV[VW]); 1334 gGL.color4f(line_color.mV[VX], line_color.mV[VY], line_color.mV[VZ], line_color.mV[VW]);
1335 1335
@@ -1339,7 +1339,7 @@ void LLManipTranslate::renderSnapGuides()
1339 gGL.end(); 1339 gGL.end();
1340 1340
1341 // draw snap guide arrow 1341 // draw snap guide arrow
1342 gGL.begin(GL_TRIANGLES); 1342 gGL.begin(LLVertexBuffer::TRIANGLES);
1343 { 1343 {
1344 gGL.color4f(line_color.mV[VX], line_color.mV[VY], line_color.mV[VZ], line_color.mV[VW]); 1344 gGL.color4f(line_color.mV[VX], line_color.mV[VY], line_color.mV[VZ], line_color.mV[VW]);
1345 1345
@@ -1594,7 +1594,7 @@ void LLManipTranslate::renderGrid(F32 x, F32 y, F32 size, F32 r, F32 g, F32 b, F
1594 1594
1595 for (F32 xx = -size-d; xx < size+d; xx += d) 1595 for (F32 xx = -size-d; xx < size+d; xx += d)
1596 { 1596 {
1597 gGL.begin(GL_TRIANGLE_STRIP); 1597 gGL.begin(LLVertexBuffer::TRIANGLE_STRIP);
1598 for (F32 yy = -size-d; yy < size+d; yy += d) 1598 for (F32 yy = -size-d; yy < size+d; yy += d)
1599 { 1599 {
1600 float dx, dy, da; 1600 float dx, dy, da;
@@ -1640,7 +1640,7 @@ void LLManipTranslate::highlightIntersection(LLVector3 normal,
1640 1640
1641 GLuint stencil_mask = 0xFFFFFFFF; 1641 GLuint stencil_mask = 0xFFFFFFFF;
1642 //stencil in volumes 1642 //stencil in volumes
1643 gGL.stop(); 1643 gGL.flush();
1644 { 1644 {
1645 glStencilMask(stencil_mask); 1645 glStencilMask(stencil_mask);
1646 glClearStencil(1); 1646 glClearStencil(1);
@@ -1702,7 +1702,7 @@ void LLManipTranslate::highlightIntersection(LLVector3 normal,
1702 1702
1703 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE); 1703 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE);
1704 } 1704 }
1705 gGL.start(); 1705 gGL.color4f(1,1,1,1);
1706 1706
1707 gGL.pushMatrix(); 1707 gGL.pushMatrix();
1708 1708
@@ -1907,7 +1907,7 @@ void LLManipTranslate::renderTranslationHandles()
1907 color1.setVec(0.f, 1.f, 0.f, 0.6f); 1907 color1.setVec(0.f, 1.f, 0.f, 0.6f);
1908 color2.setVec(0.f, 0.f, 1.f, 0.6f); 1908 color2.setVec(0.f, 0.f, 1.f, 0.6f);
1909 } 1909 }
1910 gGL.begin(GL_TRIANGLES); 1910 gGL.begin(LLVertexBuffer::TRIANGLES);
1911 { 1911 {
1912 gGL.color4fv(color1.mV); 1912 gGL.color4fv(color1.mV);
1913 gGL.vertex3f(0.f, mPlaneManipOffsetMeters * (-PLANE_TICK_SIZE * 0.25f), mPlaneManipOffsetMeters * (-PLANE_TICK_SIZE * 0.25f)); 1913 gGL.vertex3f(0.f, mPlaneManipOffsetMeters * (-PLANE_TICK_SIZE * 0.25f), mPlaneManipOffsetMeters * (-PLANE_TICK_SIZE * 0.25f));
@@ -1922,7 +1922,7 @@ void LLManipTranslate::renderTranslationHandles()
1922 gGL.end(); 1922 gGL.end();
1923 1923
1924 LLUI::setLineWidth(3.0f); 1924 LLUI::setLineWidth(3.0f);
1925 gGL.begin(GL_LINES); 1925 gGL.begin(LLVertexBuffer::LINES);
1926 { 1926 {
1927 gGL.color4f(0.f, 0.f, 0.f, 0.3f); 1927 gGL.color4f(0.f, 0.f, 0.f, 0.3f);
1928 gGL.vertex3f(0.f, mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f, mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f); 1928 gGL.vertex3f(0.f, mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f, mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f);
@@ -1962,7 +1962,7 @@ void LLManipTranslate::renderTranslationHandles()
1962 color2.setVec(1.f, 0.f, 0.f, 0.6f); 1962 color2.setVec(1.f, 0.f, 0.f, 0.6f);
1963 } 1963 }
1964 1964
1965 gGL.begin(GL_TRIANGLES); 1965 gGL.begin(LLVertexBuffer::TRIANGLES);
1966 { 1966 {
1967 gGL.color4fv(color1.mV); 1967 gGL.color4fv(color1.mV);
1968 gGL.vertex3f(mPlaneManipOffsetMeters * (PLANE_TICK_SIZE * 0.25f), 0.f, mPlaneManipOffsetMeters * (PLANE_TICK_SIZE * 0.25f)); 1968 gGL.vertex3f(mPlaneManipOffsetMeters * (PLANE_TICK_SIZE * 0.25f), 0.f, mPlaneManipOffsetMeters * (PLANE_TICK_SIZE * 0.25f));
@@ -1977,7 +1977,7 @@ void LLManipTranslate::renderTranslationHandles()
1977 gGL.end(); 1977 gGL.end();
1978 1978
1979 LLUI::setLineWidth(3.0f); 1979 LLUI::setLineWidth(3.0f);
1980 gGL.begin(GL_LINES); 1980 gGL.begin(LLVertexBuffer::LINES);
1981 { 1981 {
1982 gGL.color4f(0.f, 0.f, 0.f, 0.3f); 1982 gGL.color4f(0.f, 0.f, 0.f, 0.3f);
1983 gGL.vertex3f(mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f, 0.f, mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f); 1983 gGL.vertex3f(mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f, 0.f, mPlaneManipOffsetMeters * -PLANE_TICK_SIZE * 0.25f);
@@ -2041,7 +2041,7 @@ void LLManipTranslate::renderTranslationHandles()
2041 color2.setVec(0.f, 0.8f, 0.f, 0.6f); 2041 color2.setVec(0.f, 0.8f, 0.f, 0.6f);
2042 } 2042 }
2043 2043
2044 gGL.begin(GL_TRIANGLES); 2044 gGL.begin(LLVertexBuffer::TRIANGLES);
2045 { 2045 {
2046 gGL.color4fv(color1.mV); 2046 gGL.color4fv(color1.mV);
2047 gGL.vertex3fv(v0.mV); 2047 gGL.vertex3fv(v0.mV);
@@ -2056,7 +2056,7 @@ void LLManipTranslate::renderTranslationHandles()
2056 gGL.end(); 2056 gGL.end();
2057 2057
2058 LLUI::setLineWidth(3.0f); 2058 LLUI::setLineWidth(3.0f);
2059 gGL.begin(GL_LINES); 2059 gGL.begin(LLVertexBuffer::LINES);
2060 { 2060 {
2061 gGL.color4f(0.f, 0.f, 0.f, 0.3f); 2061 gGL.color4f(0.f, 0.f, 0.f, 0.3f);
2062 LLVector3 v12 = (v1 + v2) * .5f; 2062 LLVector3 v12 = (v1 + v2) * .5f;
@@ -2190,7 +2190,7 @@ void LLManipTranslate::renderArrow(S32 which_arrow, S32 selected_arrow, F32 box_
2190 2190
2191 { 2191 {
2192 LLUI::setLineWidth(2.0f); 2192 LLUI::setLineWidth(2.0f);
2193 gGL.begin(GL_LINES); 2193 gGL.begin(LLVertexBuffer::LINES);
2194 vec.mV[index] = box_size; 2194 vec.mV[index] = box_size;
2195 gGL.vertex3f(vec.mV[0], vec.mV[1], vec.mV[2]); 2195 gGL.vertex3f(vec.mV[0], vec.mV[1], vec.mV[2]);
2196 2196