// 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) }
// resize handles user screen/window changes. func (tb *tbtag) resize(x, y, width, height int) { gl.Viewport(0, 0, int32(width), int32(height)) }
// 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) }
func (gc *opengl) Viewport(width int, height int) { gl.Viewport(0, 0, int32(width), int32(height)) }