changed to wireframe-rendering
This commit is contained in:
		@@ -326,6 +326,7 @@ drawMap = do
 | 
				
			|||||||
        glPatchParameteri gl_PATCH_VERTICES 3
 | 
					        glPatchParameteri gl_PATCH_VERTICES 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        cullFace $= Nothing --Just Front
 | 
					        cullFace $= Nothing --Just Front
 | 
				
			||||||
 | 
					        polygonMode $= (Line,Line)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        glDrawArrays gl_PATCHES 0 (fromIntegral numVert)
 | 
					        glDrawArrays gl_PATCHES 0 (fromIntegral numVert)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -490,6 +491,7 @@ render = do
 | 
				
			|||||||
        -- Drawing HUD
 | 
					        -- Drawing HUD
 | 
				
			||||||
        clear [ColorBuffer, DepthBuffer]
 | 
					        clear [ColorBuffer, DepthBuffer]
 | 
				
			||||||
        checkError "clear buffer"
 | 
					        checkError "clear buffer"
 | 
				
			||||||
 | 
					        polygonMode $= (Fill,Fill)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let hud    = state ^. gl.glHud
 | 
					        let hud    = state ^. gl.glHud
 | 
				
			||||||
            stride = fromIntegral $ sizeOf (undefined::GLfloat) * 2
 | 
					            stride = fromIntegral $ sizeOf (undefined::GLfloat) * 2
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user