indexing description: "[ L-Type Fractals in 3D using OpenGL ]" date: "$Date$" revision: "$Revision$" class ROOT_CLASS 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 (Window_width) Video_subsystem.set_video_surface_height (Window_height) Video_subsystem.set_video_bpp (Screen_resolution) Video_subsystem.set_fullscreen (Is_fullscreen_enabled) Video_subsystem.set_opengl (Is_opengl_enabled) Video_subsystem.enable initialize_screen -- Check subsystem initialisation if Video_subsystem.is_enabled then -- Set global options set_window_title ("el Fractal!") set_application_id ("elFrac") -- 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 first scene and launch it set_scene (create {EF_SCENE}.make) launch -- Disable subsystems Video_subsystem.disable else if not Video_subsystem.is_enabled then io.error.put_string ("Failed to initialise video subsystem.%N") end end end feature {NONE} -- Implementation -- *** Set your application's default options *** -- Window_width: INTEGER is 800 -- Window width Window_height: INTEGER is 600 -- Window height Screen_resolution: INTEGER is 32 -- Screen resolution Is_fullscreen_enabled: BOOLEAN is True -- Is fullscreen enabled? Is_opengl_enabled: BOOLEAN is True -- Is OpenGL enabled? end