indexing description: "[ Sample application demonstrating the use of EMGL_FONT ]" date: "$Date$" revision: "$Revision$" class OPENGL_FONT inherit EM_APPLICATION EM_SHARED_THEME export {NONE} all end create make feature {NONE} -- Initialisation make is -- Start main application. local keyboard: EM_KEYBOARD do -- *** Enable required subsystems *** -- -- Initiliase subsystems Video_subsystem.set_video_surface_width (1024) Video_subsystem.set_video_surface_height (768) Video_subsystem.set_video_bpp (32) Video_subsystem.set_fullscreen (false) Video_subsystem.set_opengl (true) Video_subsystem.enable Audio_subsystem.enable Network_subsystem.enable Joystick_subsystem.enable Cdrom_subsystem.enable initialize_screen -- Check subsystem initialisation if Video_subsystem.is_enabled and Audio_subsystem.is_enabled and Network_subsystem.is_enabled and Joystick_subsystem.is_enabled and Cdrom_subsystem.is_enabled then -- Set global options set_window_title ("EiffelMedia: my_project_name") set_application_id ("my_project_name") set_window_icon ("icon.png") create keyboard.make_snapshot keyboard.enable_unicode_characters keyboard.enable_repeating_key_down_events (200, 100) load_eclipse_theme -- *** Set your application's first scene *** -- -- Set first scene and launch it set_scene (create {MAIN_SCENE}.make) launch -- Disable subsystems Video_subsystem.disable Audio_subsystem.disable Network_subsystem.disable Joystick_subsystem.disable Cdrom_subsystem.disable else if not Video_subsystem.is_enabled then io.error.put_string ("Failed to initialise video subsystem.%N") end if not Audio_subsystem.is_enabled then io.error.put_string ("Failed to initialise audio subsystem.%N") end if not Network_subsystem.is_enabled then io.error.put_string ("Failed to initialise network subsystem.%N") end if not Joystick_subsystem.is_enabled then io.error.put_string ("Failed to initialise joystick subsystem.%N") end if not Cdrom_subsystem.is_enabled then io.error.put_string ("Failed to initialise cdrom subsystem.%N") end end end end