-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace String arguments with Text (#138)
Shave a few allocations and pointer-chasing due to conversion.
- Loading branch information
Showing
5 changed files
with
292 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
cabal-version: 3.0 | ||
|
||
name: dear-imgui | ||
version: 1.5.0 | ||
version: 2.0.0 | ||
author: Oliver Charles | ||
maintainer: [email protected], [email protected] | ||
license: BSD-3-Clause | ||
|
@@ -140,13 +140,14 @@ library | |
exposed-modules: | ||
DearImGui | ||
DearImGui.FontAtlas | ||
DearImGui.Internal.Text | ||
DearImGui.Raw | ||
DearImGui.Raw.DrawList | ||
DearImGui.Raw.Font | ||
DearImGui.Raw.Font.Config | ||
DearImGui.Raw.Font.GlyphRanges | ||
DearImGui.Raw.ListClipper | ||
DearImGui.Raw.IO | ||
DearImGui.Raw.ListClipper | ||
other-modules: | ||
DearImGui.Context | ||
DearImGui.Enums | ||
|
@@ -171,6 +172,7 @@ library | |
, StateVar | ||
, unliftio | ||
, vector | ||
, text | ||
|
||
if flag(disable-obsolete) | ||
cxx-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS | ||
|
@@ -286,7 +288,7 @@ library dear-imgui-generator | |
, scientific | ||
>= 0.3.6.2 && < 0.3.8 | ||
, text | ||
>= 1.2.4 && < 1.3 | ||
>= 1.2.4 && < 2.1 | ||
, th-lift | ||
>= 0.7 && < 0.9 | ||
, transformers | ||
|
@@ -308,10 +310,10 @@ executable glfw | |
main-is: Main.hs | ||
hs-source-dirs: examples/glfw | ||
default-language: Haskell2010 | ||
if (!flag(examples) || !flag(glfw) || !flag(opengl2)) | ||
if (!flag(examples) || !flag(glfw) || !flag(opengl3)) | ||
buildable: False | ||
else | ||
build-depends: base, GLFW-b, gl, dear-imgui, managed | ||
build-depends: base, GLFW-b, gl, dear-imgui, managed, text | ||
|
||
executable readme | ||
import: common, exe-flags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.