1 Star 0 Fork 0

陈慧颖 / gooid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nativeinfo.go 456 Bytes
一键复制 编辑 原始数据 按行查看 历史
gooid 提交于 2018-11-27 19:42 . ImGui Tree Demo
package main
import (
"unsafe"
"github.com/gooid/gooid"
)
type nativeInfo struct {
win *app.Window
}
func (e *nativeInfo) NativeDisplay() unsafe.Pointer {
return nil
}
func (e *nativeInfo) NativeWindow() unsafe.Pointer {
return unsafe.Pointer(e.win)
}
func (e *nativeInfo) WindowSize() (w, h int) {
return e.win.Width(), e.win.Height()
}
func (e *nativeInfo) SetBuffersGeometry(format int) int {
return e.win.SetBuffersGeometry(0, 0, format)
}
1
https://gitee.com/githubchy/gooid.git
git@gitee.com:githubchy/gooid.git
githubchy
gooid
gooid
2c72341a60e5

搜索帮助