| 838 | } |
| 839 | |
| 840 | void OcTreeDrawer::drawOctreeGrid() const { |
| 841 | if (!m_octree_grid_vis_initialized) return; |
| 842 | if (octree_grid_vertex_size == 0) return; |
| 843 | |
| 844 | glDisable(GL_LIGHTING); |
| 845 | glEnable(GL_LINE_SMOOTH); |
| 846 | |
| 847 | glLineWidth(1.); |
| 848 | glVertexPointer(3, GL_FLOAT, 0, octree_grid_vertex_array); |
| 849 | glColor3f(0.0, 0.0, 0.0); |
| 850 | glDrawArrays(GL_LINES, 0, octree_grid_vertex_size / 3); |
| 851 | |
| 852 | glDisable(GL_LINE_SMOOTH); |
| 853 | glEnable(GL_LIGHTING); |
| 854 | } |
| 855 | |
| 856 | void OcTreeDrawer::enableOcTree(bool enabled) { |
| 857 | m_update = true; |
nothing calls this directly
no outgoing calls
no test coverage detected