Skip to content

Commit fca2e9f

Browse files
committed
Update the README with the demo window and a screenshot
1 parent c41eae7 commit fca2e9f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Example.png

42.4 KB
Loading

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ games and graphics intensive applications.
1212

1313
# Getting Started
1414

15+
To get started, we'll build the following:
16+
17+
![](./Example.png)
18+
1519
`dear-imgui.hs` can be used like a normal Haskell library. If you use Cabal,
1620
simply add `dear-imgui` to your `build-depends`. ImGui supports a variety of
1721
backends, and you will need to choose your backend at configuration time.
@@ -90,6 +94,9 @@ mainLoop w = do
9094
False -> return ()
9195
True -> putStrLn "Ow!"
9296

97+
-- Show the ImGui demo window
98+
showDemoWindow
99+
93100
-- Render
94101
glClear GL_COLOR_BUFFER_BIT
95102

examples/Readme.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ mainLoop w = do
6464
False -> return ()
6565
True -> putStrLn "Ow!"
6666

67+
-- Show the ImGui demo window
68+
showDemoWindow
69+
6770
-- Render
6871
glClear GL_COLOR_BUFFER_BIT
6972

0 commit comments

Comments
 (0)