Update the README with the demo window and a screenshot

This commit is contained in:
Oliver Charles 2021-01-25 09:18:13 +00:00
parent c41eae7817
commit fca2e9fbff
3 changed files with 10 additions and 0 deletions

BIN
Example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -12,6 +12,10 @@ games and graphics intensive applications.
# Getting Started
To get started, we'll build the following:
![](./Example.png)
`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

View File

@ -64,6 +64,9 @@ mainLoop w = do
False -> return ()
True -> putStrLn "Ow!"
-- Show the ImGui demo window
showDemoWindow
-- Render
glClear GL_COLOR_BUFFER_BIT