Example #1
0
// Release frees any memory occupied by a loaded image, and clears all the
// fields of the GLFWimage struct. Any image that has been loaded by the
// glfw.ReadImage function should be deallocated using this function once the
// image is no longer needed.
func (i *Image) Release() { C.glfwFreeImage(&i.img) }
Example #2
0
func (this *Image) Release() {
	C.glfwFreeImage(this.ptr)
	this.ptr = nil
}