示例#1
0
文件: pixels.go 项目: emlai/go-sdl2
// 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)))
}
示例#2
0
文件: pixels.go 项目: DeedleFake/sdl
func (p *Palette) Free() {
	C.SDL_FreePalette(p.c())
}