src/ui/canvas.cpp

changeset 172
50f055543ff6
parent 170
9b655f6fe5a1
child 187
30204975694a
equal deleted inserted replaced
171:b497f5e66749 172:50f055543ff6
128 this->axesProgram->draw(); 128 this->axesProgram->draw();
129 glDisable(GL_LINE_SMOOTH); 129 glDisable(GL_LINE_SMOOTH);
130 } 130 }
131 // Render vertices 131 // Render vertices
132 { 132 {
133 glLineWidth(1.5); 133 glCullFace(GL_FRONT);
134 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
135 glEnable(GL_LINE_SMOOTH);
136 glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
137 this->vertexProgram->draw(); 134 this->vertexProgram->draw();
138 glDisable(GL_LINE_SMOOTH);
139 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
140 } 135 }
141 // Render grid 136 // Render grid
142 { 137 {
143 glLineWidth(1); 138 glLineWidth(1);
144 glEnable(GL_BLEND); 139 glEnable(GL_BLEND);

mercurial