Commit Graph

50 Commits

Author SHA1 Message Date
Alexander Bondarenko
802bdb72fe
Fix cabal flag for image example (#170) 2022-12-24 12:21:51 +02:00
Alexander Bondarenko
69a463d98b
Fix vulkan versions to a fresh set (#168)
vulkan, vulkan-utils and VMA can be too old/new for each other.
This cuts a fresh, known-to-work set of lower bounds.
2022-12-12 18:33:48 +00:00
Alexander Bondarenko
9bb66f0113
Fix the text fix and prepare 2.1.3 (#167) 2022-12-12 19:57:54 +02:00
Alexander Bondarenko
cd99938f97
Prepare v2.1.2 (#162) 2022-11-30 16:32:44 +00:00
Tristan de Cacqueray
a2feb73fa5
Fix the glfw example build condition (#159)
The example needs the opengl2 flag.
2022-11-22 21:13:18 +02:00
Alexander Bondarenko
9dac0f9fbe
Prepare 2.1.1 (#157) 2022-08-30 21:13:04 +00:00
Axis Sivitz
dab5937eee
Fix compilation on MacOS / GHC 8.10.7 (#156)
Fixes errors along the lines of:
dear-imgui  > [ 2 of 17] Compiling DearImGui.GLFW
dear-imgui  > error: unknown type name 'constexpr'

So the "-std=c++11" option is not being passed to the C++ compiler on
MacOS.
The issue seems related to https://github.com/haskell/cabal/issues/6421
2022-08-30 21:57:08 +03:00
Alexander Bondarenko
7795b3d838
Prepare 2.1.0 (#153)
Breaking change in upstream.
2022-07-25 18:14:21 +00:00
06eb052cc5
added flag_ImDrawIdx (#151)
Co-authored-by: Stefan Dresselhaus <stefan@dresselhaus.cloud>
2022-07-23 15:42:13 +03:00
Alexander Bondarenko
3c1d381c14
Replace String arguments with Text (#138)
Shave a few allocations and pointer-chasing due to conversion.
2022-05-15 22:41:10 +03:00
Alexander Bondarenko
04fe618871
Prepare 1.5.0 (#140) 2022-03-28 13:22:11 +00:00
Alexander Bondarenko
67e169dc35
Prepare 1.4.0 (#129) 2022-02-13 19:31:45 +03:00
Alexander Bondarenko
ccdff36774
Add wchar32 and disable-obsolete flags (#127) 2022-02-13 16:05:49 +00:00
Alexander Bondarenko
af6ba9e989
Add image support for vulkan backend (#126) 2022-02-13 14:24:08 +00:00
Alexander Bondarenko
265d143261
Prepare 1.3.1 (#123) 2022-01-31 10:56:12 +03:00
Alexander Bondarenko
a95d95bb65
Prepare 1.3.0 (#120) 2021-12-22 17:40:24 +03:00
Mikhail Chekan
bb94341ad5
Extended font & glyph support (#114)
* Separate font utils, add glyph support (#113)
* Implement font glyph ranges builder
* Implement raw font config binds
* Implement font atlas module
* Rewrite font altas rebuilder in Managed
2021-12-22 13:28:46 +03:00
Alexander Bondarenko
13e68242a1
Update unordered-containers upper limit (#117) 2021-12-19 18:25:11 +03:00
Alexander Bondarenko
3087a99044
Allow megaparsec 9.2 (#112)
Closes #106
2021-10-30 18:57:15 +00:00
Alexander Bondarenko
f74cd218c5
Bump imgui to 1.85 (#111)
Closes #110
2021-10-30 18:49:39 +00:00
Alexander Bondarenko
a2c0c0658e
Remove library options preventing hackage upload (#108) 2021-10-04 18:41:07 +00:00
Alexander Bondarenko
21ce5cabd8
Add ImGuiIO basics (#107) 2021-10-04 17:29:32 +00:00
jpwidera
8db9ddec2f
Added compiler flags stanzas. (#105) 2021-09-21 15:14:37 +03:00
jpwidera
4ecf62ac9e
Implement ImGuiListClipper (#100)
* Added DearImGui.Raw.ImGuiListClipper
* Added the DearImGui.withListClipper bracket
* Added dependency for `vector`
* Added the test in the Main.hs
2021-09-17 11:09:22 +03:00
Alexander Bondarenko
8ee82476dc
Add raw DrawList bindings (#99) 2021-09-15 08:52:00 +03:00
Alexander Bondarenko
97825e49f2
Prepare 1.2.0 (#98) 2021-09-12 19:46:05 +03:00
Alexander Bondarenko
88326420b8
Tidy up image example (#96) 2021-09-12 11:56:43 +00:00
jpwidera
f3b85899f2
Added image wrapper (#74)
Raw.image and sdl2/gl example "image"

Wrappers should be backend-specific due to different handling of `userTextureIDPtr`.
2021-09-12 10:35:03 +00:00
Ollie Charles
84a6b8a8fe
Allow parser-combinators-1.4 (#85) 2021-09-08 13:10:39 +01:00
Alexander Bondarenko
d3a0396623
Add GLFW callbacks (#81)
Closes #80
2021-09-01 19:22:55 +03:00
Alexander Bondarenko
5699f64e95
Bump imgui to 1.84.2 (#78) 2021-08-30 19:57:00 +03:00
Alexander Bondarenko
9e5b39850e
Prepare 1.0.2 (#77) 2021-08-30 19:20:26 +03:00
Alexander Bondarenko
bfe8453891
Fix missing headers in source dist (#71)
Fixes #50 again
2021-06-30 22:33:00 +00:00
Alexander Bondarenko
532eebd8ed
Prepare Hackage release (#70) 2021-07-01 00:47:23 +03:00
sheaf
c4f3a1e0b9
Update all flags to allow setting them manually (#64) 2021-06-20 20:24:22 +03:00
Alexander Bondarenko
ff267143d0
Bump deps (#62) 2021-06-15 21:52:39 +00:00
Alexander Bondarenko
8723ac2625
Add withXxx and withXxxOpen wrappers for begin/end pairs (#49)
Adds dependency on unliftio for monad-preserving brackets.

Fixes #32
2021-04-18 13:10:20 +03:00
Alexander Bondarenko
5634b6f67d
Extract raw C bindings (#44)
The original DearImGui interface hasn't changed.
2021-04-05 20:16:09 +03:00
Tristan de Cacqueray
3949882060
Disable build-depends when not building executables (#43)
This change follows up on https://github.com/haskell-game/dear-imgui.hs/pull/41
where it seems like cabal still need the examples dependency even when they are
not buildable, e.g.: `next goal: vulkan-utils (dependency of dear-imgui)` with
cabal-install version 3.2.0.0.
2021-03-12 15:39:24 +00:00
Alexander Bondarenko
ebd5286e1c
Build executables conditionally on features (#41)
* Build executables conditionally on features

* Put away examples under a flag
2021-03-11 22:59:57 +00:00
sheaf
d4aec47f4e
Handle remaining enums (#36)
This handles the remaining enum types in the headers that aren't in the enums section.

It also automatically handles adding all the enumerations to the inline-c context types table, and a small improvement to the display of parse error messages.
2021-02-07 23:07:14 +00:00
sheaf
921aefdd69
Allow building of OpenGL3 component on Windows/Darwin (#35) 2021-02-06 21:19:56 +00:00
Ollie Charles
f9412effde
Wrap the OpenGL 3 backend (#20) 2021-02-06 14:44:58 +00:00
Shaun Sharples
d7686f84e4
Add support for GLFW (#26)
Co-authored-by: Oliver Charles <ollie@ocharles.org.uk>
2021-02-05 21:44:52 +00:00
sheaf
895f5c1926
Parse enums from headers & generate code (#19) 2021-02-05 20:57:17 +00:00
Ollie Charles
af49a7b3fb
Wrap ImGui::ListBox() (#25) 2021-01-28 23:38:59 +00:00
sheaf
0b86356a49
Vulkan backend (#2)
This commit adds the Vulkan backend and SDL2 integration, and provides the `vulkan` example project.
2021-01-26 20:45:21 +00:00
sheaf
e220775b21
Fix conditional in cabal file (#12)
The if conditionals were incorrectly nested, which caused a problem with OpenGL on Windows.
2021-01-26 11:01:41 +00:00
Tim Pierson
76f9a316b7
Fixes to make Darwin work (#7)
`extra-libraries: sdl2` needs to be `extra-libraries: SDL2`, and we need a dependency on `OpenGL`.
2021-01-25 16:42:31 +00:00
kamoii
76ea3f80ec Rename cabal file name to dear-imagui.cabal to match pacakge name 2021-01-25 11:40:28 +00:00