示例#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)
}