Hook to prepare for recreating the OpenGL context

Some gamnit services refine this method to reset caches before the next call to create_gamnit.

Property definitions

gamnit :: gamnit $ App :: recreate_gamnit
	# Hook to prepare for recreating the OpenGL context
	#
	# Some gamnit services refine this method to reset caches before the
	# next call to `create_gamnit`.
	fun recreate_gamnit do end
lib/gamnit/gamnit.nit:40,2--44,27

gamnit :: gamnit_android $ App :: recreate_gamnit
	redef fun recreate_gamnit
	do
		super

		# Reload all textures
		if debug_gamnit then print "recreate_gamnit: reloading {all_root_textures.length} textures"
		for texture in all_root_textures do
			if debug_gamnit then print "recreate_gamnit: loading {texture}"
			texture.load true
			var gamnit_error = texture.error
			if gamnit_error != null then print_error gamnit_error
		end
	end
lib/gamnit/gamnit_android.nit:221,2--233,4