Closed dpwiz closed 2 years ago
I've found a few ways of implementation.
We could incorporate some of these options through flags. It is definitely global, yet AFAIK only acceptable for boolean options. I don't know how to send string values through Cabal configuration.
flag wchar32
description:
Use 32-bit integers to represent Unicode characters.
default:
False
manual:
True
if flag(wchar32)
cxx-options: -DIMGUI_USE_WCHAR32
C.verbatim
. I'm afraid that it won't work globally (IMGUI_USER_CONFIG
is used under #pragma once
somewhere in the library code)...C.verbatim "#define IM_ASSERT(_EXPR) ((void)(_EXPR))"
DearImGui.Config
module, set it as IMGUI_USER_CONFIG
in Cabal configuration, we could use ifdef
and verbatim
s... But seems impossible, and still, no string options.Alternatively, we can turn on full unicode support globally.
This looks like a right thing to do by default. Optimisations can follow later.
https://github.com/ocornut/imgui/blob/master/imconfig.h