mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 08:56:59 +00:00
Update the README with the demo window and a screenshot
This commit is contained in:
parent
c41eae7817
commit
fca2e9fbff
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
|
# 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,
|
`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
|
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.
|
backends, and you will need to choose your backend at configuration time.
|
||||||
@ -90,6 +94,9 @@ mainLoop w = do
|
|||||||
False -> return ()
|
False -> return ()
|
||||||
True -> putStrLn "Ow!"
|
True -> putStrLn "Ow!"
|
||||||
|
|
||||||
|
-- Show the ImGui demo window
|
||||||
|
showDemoWindow
|
||||||
|
|
||||||
-- Render
|
-- Render
|
||||||
glClear GL_COLOR_BUFFER_BIT
|
glClear GL_COLOR_BUFFER_BIT
|
||||||
|
|
||||||
|
@ -64,6 +64,9 @@ mainLoop w = do
|
|||||||
False -> return ()
|
False -> return ()
|
||||||
True -> putStrLn "Ow!"
|
True -> putStrLn "Ow!"
|
||||||
|
|
||||||
|
-- Show the ImGui demo window
|
||||||
|
showDemoWindow
|
||||||
|
|
||||||
-- Render
|
-- Render
|
||||||
glClear GL_COLOR_BUFFER_BIT
|
glClear GL_COLOR_BUFFER_BIT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user