Example #1
0
func (f *framebuffer) setAsViewport(context *opengl.Context) error {
	width := viewportSize
	height := viewportSize
	return context.SetViewport(f.native, width, height)
}
Example #2
0
func (f *Framebuffer) setAsViewport(c *opengl.Context) error {
	width := NextPowerOf2Int(f.width)
	height := NextPowerOf2Int(f.height)
	return c.SetViewport(f.native, width, height)
}