Example #1
0
// Free frees a palette created with AllocPalette.
// Palette (https://wiki.libsdl.org/SDL_FreePalette)
func (palette *Palette) Free() {
	C.SDL_FreePalette((*C.SDL_Palette)(unsafe.Pointer(palette)))
}
Example #2
0
func (p *Palette) Free() {
	C.SDL_FreePalette(p.c())
}