Example #1
0
func (c *Context) DeleteFramebuffer(f Framebuffer) {
	_ = c.runOnContextThread(func() error {
		ff := uint32(f)
		if !gl.IsFramebuffer(ff) {
			return nil
		}
		if c.lastFramebuffer == f {
			c.lastFramebuffer = invalidFramebuffer
			c.lastViewportWidth = 0
			c.lastViewportHeight = 0
		}
		gl.DeleteFramebuffers(1, &ff)
		return nil
	})
}
Example #2
0
// DeleteFramebuffer deletes the given framebuffer object.
//
// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteFramebuffers.xhtml
func DeleteFramebuffer(v Framebuffer) {
	gl.DeleteFramebuffers(1, &v.Value)
}
Example #3
0
func (c *Context) DeleteFramebuffer(f Framebuffer) {
	ff := uint32(f)
	gl.DeleteFramebuffers(1, &ff)
}