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