예제 #1
0
파일: pixels.go 프로젝트: DeedleFake/sdl
func (p *PixelFormat) Free() {
	C.SDL_FreeFormat(p.c())
}
예제 #2
0
파일: pixels.go 프로젝트: emlai/go-sdl2
// Free frees a PixelFormat created by AllocFormat.
func (format *PixelFormat) Free() {
	C.SDL_FreeFormat((*C.SDL_PixelFormat)(unsafe.Pointer(format)))
}
예제 #3
0
파일: sdl.go 프로젝트: rwcarlsen/sdl
func freesurf(s *Surface) {
	C.SDL_FreeSurface(s.surf)
	C.SDL_FreeFormat(s.pixfmt)
}