mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-12-22 12:46:36 +00:00
Bump imgui to 1.84.2 (#78)
This commit is contained in:
parent
9e5b39850e
commit
5699f64e95
@ -1,5 +1,9 @@
|
||||
# Changelog for dear-imgui
|
||||
|
||||
## [1.1.0]
|
||||
|
||||
- `imgui` updated to 1.84.2.
|
||||
|
||||
## [1.0.2]
|
||||
|
||||
- Added `withID` and `ToID(..)` to make composable components possible.
|
||||
|
2
Main.hs
2
Main.hs
@ -57,7 +57,7 @@ loop w checked color slider r pos size' selected tab1Ref tab2Ref = do
|
||||
quit <- pollEvents
|
||||
|
||||
openGL3NewFrame
|
||||
sdl2NewFrame w
|
||||
sdl2NewFrame
|
||||
newFrame
|
||||
|
||||
-- showDemoWindow
|
||||
|
@ -81,7 +81,7 @@ mainLoop w = do
|
||||
|
||||
-- Tell ImGui we're starting a new frame
|
||||
openGL2NewFrame
|
||||
sdl2NewFrame w
|
||||
sdl2NewFrame
|
||||
newFrame
|
||||
|
||||
-- Build the GUI
|
||||
|
@ -1,7 +1,7 @@
|
||||
cabal-version: 3.0
|
||||
|
||||
name: dear-imgui
|
||||
version: 1.0.2
|
||||
version: 1.1.0
|
||||
author: Oliver Charles
|
||||
maintainer: ollie@ocharles.org.uk, aenor.realm@gmail.com
|
||||
license: BSD-3-Clause
|
||||
|
@ -51,7 +51,7 @@ mainLoop w = do
|
||||
|
||||
-- Tell ImGui we're starting a new frame
|
||||
openGL2NewFrame
|
||||
sdl2NewFrame w
|
||||
sdl2NewFrame
|
||||
newFrame
|
||||
|
||||
-- Build the GUI
|
||||
|
@ -342,7 +342,7 @@ app = do
|
||||
else
|
||||
handleJust vulkanException ( pure . reloadQuit ) do
|
||||
ImGui.Vulkan.vulkanNewFrame
|
||||
ImGui.SDL.sdl2NewFrame window
|
||||
ImGui.SDL.sdl2NewFrame
|
||||
ImGui.newFrame
|
||||
ImGui.showDemoWindow
|
||||
ImGui.render
|
||||
|
2
imgui
2
imgui
@ -1 +1 @@
|
||||
Subproject commit ad5d1a8429ea219d3d34e6a36a48918650402697
|
||||
Subproject commit e3e1fbcf025cf83413815751f7c33500e1314d57
|
@ -40,7 +40,6 @@ import qualified Language.C.Inline.Cpp as Cpp
|
||||
|
||||
-- sdl2
|
||||
import SDL
|
||||
import SDL.Internal.Types
|
||||
import SDL.Raw.Enum as Raw
|
||||
import qualified SDL.Raw.Event as Raw
|
||||
|
||||
@ -57,9 +56,9 @@ Cpp.using "namespace ImGui"
|
||||
|
||||
|
||||
-- | Wraps @ImGui_ImplSDL2_NewFrame@.
|
||||
sdl2NewFrame :: MonadIO m => Window -> m ()
|
||||
sdl2NewFrame (Window windowPtr) = liftIO do
|
||||
[C.exp| void { ImGui_ImplSDL2_NewFrame((SDL_Window*)($(void* windowPtr))); } |]
|
||||
sdl2NewFrame :: MonadIO m => m ()
|
||||
sdl2NewFrame = liftIO do
|
||||
[C.exp| void { ImGui_ImplSDL2_NewFrame(); } |]
|
||||
|
||||
|
||||
-- | Wraps @ImGui_ImplSDL2_Shutdown@.
|
||||
|
Loading…
Reference in New Issue
Block a user