File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ games and graphics intensive applications.
12
12
13
13
# Getting Started
14
14
15
+ To get started, we'll build the following:
16
+
17
+ ![ ] ( ./Example.png )
18
+
15
19
` dear-imgui.hs ` can be used like a normal Haskell library. If you use Cabal,
16
20
simply add ` dear-imgui ` to your ` build-depends ` . ImGui supports a variety of
17
21
backends, and you will need to choose your backend at configuration time.
@@ -90,6 +94,9 @@ mainLoop w = do
90
94
False -> return ()
91
95
True -> putStrLn " Ow!"
92
96
97
+ -- Show the ImGui demo window
98
+ showDemoWindow
99
+
93
100
-- Render
94
101
glClear GL_COLOR_BUFFER_BIT
95
102
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ mainLoop w = do
64
64
False -> return ()
65
65
True -> putStrLn " Ow!"
66
66
67
+ -- Show the ImGui demo window
68
+ showDemoWindow
69
+
67
70
-- Render
68
71
glClear GL_COLOR_BUFFER_BIT
69
72
You can’t perform that action at this time.
0 commit comments