示例#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) }
示例#2
0
文件: image.go 项目: skelterjohn/glfw
func (this *Image) Release() {
	C.glfwFreeImage(this.ptr)
	this.ptr = nil
}