コード例 #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
}