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