-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable AntiAliasedLines with giu/golang #632
Comments
@francmarx do you mean the Plot flag? |
@gucio321 I know "giu.Plot().Flags(giu.PlotFlagsAntiAliased)", but it doesn't solve my problem: It seems that anti-aliasing is alwasy on, I can't switch it off. So I am looking for some global settings like "style.AntiAliasedLines" in imgui_demo.cpp |
In cimgui there is func (self Style) SetAntiAliasedLines(v bool) {
selfArg, selfFin := self.handle()
defer selfFin()
C.wrap_ImGuiStyle_SetAntiAliasedLines(selfArg, C.bool(v))
} so |
@gucio321 Should I switch from imgui-go to cimgui-go ? cimgui-go has no official release yet. |
Giu's master branch already used cimgui-go. |
@gucio321 running giu with cimgui-go form master branch I managed to compile,
is there an example to use implot with new cimgui-go package? |
@francmarx thats a good question. in case of 2nd and 3rd axis: whats the code? I think you may find appropiate functions too. |
I've added a link to the documentation in cimgui-go repo |
"2nd and 3rd axis": old code was:
now it doesn't work because PlotFlagsYAxis2 doesn't exist, in flags.go it is commented out:
I have no idea how to activate second/third axis |
from cimplot_enums.go: // original name: ImAxis_
type PlotAxisEnum int32
const (
AxisX1 = 0
AxisX2 = 1
AxisX3 = 2
AxisY1 = 3
AxisY2 = 4
AxisY3 = 5
AxisCOUNT = 6
) in giu, well, now I see there is something strange done there... |
@gucio321 another problem: when entering '2' key from numpad to gui.InputFloat(...) I got an error "panic: Unknown key: 322" at line 204 from Keycode.go normal '2' from main-keyboard works (is it possible to communicate via some messenger ??) |
@gucio321 numkeys work now, thanks :) checking the framerate I found a difference between imgui-go and cimgui-go: Do I have to make certain changes to the main loop or certain settings? |
I've never tought about this tbh 😄 from unsigned int glfw_target_fps = 30;
//...
void igSetTargetFPS(unsigned int fps) { glfw_target_fps = fps; } from glfw_backend.go: func (b *GLFWBackend) SetTargetFPS(fps uint) {
C.igSetTargetFPS(C.uint(fps))
} So you can set it in cimgui-go In giu we probably need to add something. |
@francmarx btw, thank you for pointing out these bugs - it makes giu still better and better 😄 LMK if iyou find something more |
w := g.NewMasterWindow(....) works :) thanks |
PlotAxisFlagsTime doesn't work, it is commented out, Flags.go line 503
|
@francmarx yes, because there is no such a flag in implot. What should it do? |
@gucio321 old code was:
it switches to time scale for x-axis, looks like this: |
ok so we need to implement Scale setting, thank you ;-) |
What happend?
in imgui_demo.cpp in line 6208 I can find:
ImGui::Checkbox("Anti-aliased lines", &style.AntiAliasedLines);
to enable/disable AntiAliasedLines.
Can't find a wrapper for this.
How this can be done with giu/golang ?
How to read/write the style structure?
Code example
To Reproduce
Version
master
OS
linux
The text was updated successfully, but these errors were encountered: