Ejemplo n.º 1
0
//Release all resources
func (game *Game) Exit() {
	freeResources()

	//Destroy the renderer
	game.renderer.Release()

	//Destroy the window
	sdl.DestroyWindow(game.window)

	//Quit SDL_ttf
	sdl.QuitTTF()

	//Quit SDL
	sdl.Quit()
}
Ejemplo n.º 2
0
func Quit(code int) {
	fmt.Println("Exiting with code", code)
	sdl.Quit()
	os.Exit(code)
}