mirror of
				https://github.com/Drezil/dear-imgui.hs.git
				synced 2025-11-03 22:51:07 +01:00 
			
		
		
		
	Update the README with the demo window and a screenshot
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								Example.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Example.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 42 KiB  | 
@@ -12,6 +12,10 @@ games and graphics intensive applications.
 | 
			
		||||
 | 
			
		||||
# Getting Started
 | 
			
		||||
 | 
			
		||||
To get started, we'll build the following:
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
`dear-imgui.hs` can be used like a normal Haskell library. If you use Cabal,
 | 
			
		||||
simply add `dear-imgui` to your `build-depends`. ImGui supports a variety of
 | 
			
		||||
backends, and you will need to choose your backend at configuration time.
 | 
			
		||||
@@ -90,6 +94,9 @@ mainLoop w = do
 | 
			
		||||
      False -> return ()
 | 
			
		||||
      True  -> putStrLn "Ow!"
 | 
			
		||||
 | 
			
		||||
  -- Show the ImGui demo window
 | 
			
		||||
  showDemoWindow
 | 
			
		||||
 | 
			
		||||
  -- Render
 | 
			
		||||
  glClear GL_COLOR_BUFFER_BIT
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -64,6 +64,9 @@ mainLoop w = do
 | 
			
		||||
      False -> return ()
 | 
			
		||||
      True  -> putStrLn "Ow!"
 | 
			
		||||
 | 
			
		||||
  -- Show the ImGui demo window
 | 
			
		||||
  showDemoWindow
 | 
			
		||||
 | 
			
		||||
  -- Render
 | 
			
		||||
  glClear GL_COLOR_BUFFER_BIT
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user