示例#1
0
文件: ld.go 项目: krattai/monoflow
// resize handles user screen/window changes.
func (ld *ldtag) resize(x, y, width, height int) {
	gl.Viewport(0, 0, int32(width), int32(height))
	ld.persp = lin.NewPersp(60, float64(width)/float64(height), 0.1, 50)
}
示例#2
0
文件: tb.go 项目: krattai/monoflow
// resize handles user screen/window changes.
func (tb *tbtag) resize(x, y, width, height int) {
	gl.Viewport(0, 0, int32(width), int32(height))
}
示例#3
0
文件: tr.go 项目: krattai/monoflow
// resize sets the view port size.  User resizes are ignored.
func (tag *trtag) resize(width int, height int) {
	gl.Viewport(0, 0, int32(width), int32(height))
	tag.persp = lin.NewPersp(60, float64(width)/float64(height), 0.1, 50)
}
示例#4
0
func (gc *opengl) Viewport(width int, height int) { gl.Viewport(0, 0, int32(width), int32(height)) }