Beispiel #1
0
func (p *PixelFormat) Free() {
	C.SDL_FreeFormat(p.c())
}
Beispiel #2
0
// Free frees a PixelFormat created by AllocFormat.
func (format *PixelFormat) Free() {
	C.SDL_FreeFormat((*C.SDL_PixelFormat)(unsafe.Pointer(format)))
}
Beispiel #3
0
func freesurf(s *Surface) {
	C.SDL_FreeSurface(s.surf)
	C.SDL_FreeFormat(s.pixfmt)
}