Commit 878c41f4 authored by Pierre Kraemer's avatar Pierre Kraemer

clean viewer..

parent 86b3bc0f
......@@ -113,6 +113,7 @@ void Viewer::cb_initGL()
m_simpleColorShader->setColor(c) ;
m_pointSprite = new Utils::PointSprite() ;
m_pointSprite->setAttributePosition(m_positionVBO) ;
registerShader(m_phongShader) ;
registerShader(m_flatShader) ;
......@@ -126,7 +127,6 @@ void Viewer::cb_redraw()
if(m_drawVertices)
{
float size = vertexScaleFactor ;
m_pointSprite->setAttributePosition(m_positionVBO) ;
m_pointSprite->setSize(size) ;
m_pointSprite->predraw(Geom::Vec3f(0.0f, 0.0f, 1.0f)) ;
m_render->draw(m_pointSprite, Algo::Render::GL2::POINTS) ;
......@@ -331,8 +331,6 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv) ;
srand(123) ;
Viewer sqt ;
sqt.setGeometry(0, 0, 1000, 800) ;
sqt.show() ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment