コード例 #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
ファイル: opengl.go プロジェクト: krattai/monoflow
func (gc *opengl) Viewport(width int, height int) { gl.Viewport(0, 0, int32(width), int32(height)) }