[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [analitza] analitzaplot: Make the OpenGL ES plotter more similar to the legacy one
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2015-10-01 1:39:52
Message-ID: E1ZhSqe-0006Xk-L6 () scm ! kde ! org
[Download RAW message or body]

Git commit 5d5249c98af20238f085adb3a3b65350dfe5254b by Aleix Pol.
Committed on 01/10/2015 at 01:36.
Pushed by apol into branch 'master'.

Make the OpenGL ES plotter more similar to the legacy one

M  +4    -0    analitzaplot/plotter3d_es.cpp

http://commits.kde.org/analitza/5d5249c98af20238f085adb3a3b65350dfe5254b

diff --git a/analitzaplot/plotter3d_es.cpp b/analitzaplot/plotter3d_es.cpp
index aec9c17..96bcb0f 100644
--- a/analitzaplot/plotter3d_es.cpp
+++ b/analitzaplot/plotter3d_es.cpp
@@ -200,6 +200,10 @@ void Plotter3DES::drawPlots()
             program.setAttributeBuffer(vertexLocation, GL_FLOAT, 0, 3);
             program.setAttributeBuffer(normalLocation, GL_FLOAT, offsetNor=
mal, 3);
             glDrawElements(GL_TRIANGLES, surf->indexes().size(), GL_UNSIGN=
ED_INT, surf->indexes().constData());
+
+            //FIXME: reconsider? they're really hard to see, especially on=
 hidpi screens
+            program.setUniformValue("color", QColor(Qt::black));
+            glDrawElements(GL_POINTS, surf->indexes().size(), GL_UNSIGNED_=
INT, surf->indexes().constData());
             it.release();
             program.disableAttributeArray(normalLocation);
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic