Prepare this display

The implementation varies per platform.

Property definitions

gamnit $ GamnitDisplay :: setup
	# Prepare this display
	#
	# The implementation varies per platform.
	fun setup is abstract
lib/gamnit/display.nit:57,2--60,22

gamnit :: display_ios $ GamnitDisplay :: setup
	redef fun setup
	do
		var view = new GamnitGLKView
		view.multiple_touch_enabled = true
		self.glk_view = view
		self.width = view.drawable_width
		self.height = view.drawable_height
	end
lib/gamnit/display_ios.nit:36,2--43,4

gamnit :: display_android $ GamnitDisplay :: setup
	redef fun setup
	do
		var native_display = egl_default_display
		var native_window = app.native_app_glue.window

		setup_egl_display native_display

		# We need 8 bits per color for selection by color
		select_egl_config(red_bits, green_bits, blue_bits, 0, 8, 0)

		var format = egl_config.attribs(egl_display).native_visual_id
		assert not native_window.address_is_null
		native_window.set_buffers_geometry(0, 0, format)

		setup_egl_context native_window
	end
lib/gamnit/display_android.nit:34,2--49,4