예제 #1
0
파일: image.go 프로젝트: skarr/GarageEngine
// 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
}