src/canvas.cpp

changeset 1368
36105978da93
parent 1350
eb2d3bc4fc73
child 1369
1e2391b78d17
equal deleted inserted replaced
1367:0aab8d972cf6 1368:36105978da93
84 { 84 {
85 // Find the top left corner of the grid 85 // Find the top left corner of the grid
86 Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0})); 86 Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0}));
87 Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()})); 87 Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()}));
88 qreal gridSize = grid()->coordinateSnap(); 88 qreal gridSize = grid()->coordinateSnap();
89 glEnable(GL_LINE_STIPPLE); 89 // glEnable(GL_LINE_STIPPLE);
90 glBegin(GL_LINES); 90 glBegin(GL_LINES);
91 91
92 switch (grid()->type()) 92 switch (grid()->type())
93 { 93 {
94 case Grid::Cartesian: 94 case Grid::Cartesian:

mercurial