The window has been resized by the user or system

The framework handles resizing the viewport automatically.

Property definitions

gamnit :: gamnit $ App :: on_resize
	# The window has been resized by the user or system
	#
	# The framework handles resizing the viewport automatically.
	fun on_resize(display: GamnitDisplay) do end
lib/gamnit/gamnit.nit:111,2--114,45

gamnit :: dynamic_resolution $ App :: on_resize
	redef fun on_resize(display)
	do
		if dynamic_context_cache != null then dynamic_context.resize(display, max_dynamic_resolution_ratio)
		super
	end
lib/gamnit/dynamic_resolution.nit:83,2--87,4

gamnit :: flat_core $ App :: on_resize
	redef fun on_resize(display)
	do
		super

		world_camera.mvp_matrix_cache = null
		ui_camera.mvp_matrix_cache = null

		# Update all sprites in the UI
		for sprite in ui_sprites do sprite.needs_update
	end
lib/gamnit/flat/flat_core.nit:482,2--491,4