package main
import (
"runtime"
"github.com/jinzhongmin/goffi/pkg/c"
"github.com/jinzhongmin/goimgui/pkg/gi"
)
func main() {
runtime.LockOSThread()
gi.QuickInitLibraryGlfw("glfw3.dll", "cimgui.dll", c.ModeLazy)
_, Str := gi.NewMyStrs()
gi.QuickLaunchGlfw("hello", 900, 600, func(io *gi.QuickLaunchGlfwIO) {
gi.Begin(Str("你好 imgui"), nil, 0)
{
if gi.Button(Str("关闭主窗口(close main window)"), gi.ImVec2XY(240, 35)) {
io.Close()
}
gi.End()
}
})
}
-
Notifications
You must be signed in to change notification settings - Fork 0
jinzhongmin/goimgui
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
golang binding of imgui via cimgui
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published