Core of the frame logic, executed only when the display is visible

This method should be redefined by user modules to customize the behavior of the game.

Property definitions

gamnit :: gamnit $ App :: frame_core
	# Core of the frame logic, executed only when the display is visible
	#
	# This method should be redefined by user modules to customize the behavior of the game.
	protected fun frame_core(display: GamnitDisplay) do end
lib/gamnit/gamnit.nit:71,2--74,56

gamnit :: flat_core $ App :: frame_core
	redef fun frame_core(display)
	do
		# Check errors
		assert glGetError == gl_NO_ERROR

		# Update game logic and set sprites
		perf_clock_main.lapse
		var dt = clock.lapse.to_f
		update dt
		frame_dt = dt
		sys.perfs["gamnit flat update client"].add perf_clock_main.lapse

		# Draw and flip screen
		frame_core_draw display
		display.flip

		# Check errors
		assert glGetError == gl_NO_ERROR
	end
lib/gamnit/flat/flat_core.nit:499,2--517,4

gamnit :: selection $ App :: frame_core
	redef fun frame_core(display)
	do
		super

		# Invalidate the selection values
		selection_calculated = false
	end
lib/gamnit/depth/selection.nit:136,2--142,4