lib/sgl/opengl-app.rb in sgl-0.4.0 vs lib/sgl/opengl-app.rb in sgl-1.0.0

- old
+ new

@@ -1,38 +1,38 @@ -# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved. -# License: Ruby License - -require "sdl" -require "opengl" -require "sgl/sgl-color" -require "sgl/opengl-window" -require "sgl/opengl-color" -require "sgl/opengl-event" -require "sgl/opengl-draw" -require "sgl/sgl-sound" - -module SGL - class Application - def initialize - Thread.abort_on_exception = true - @options = default_options - initialize_window # opengl-window.rb - initialize_color # sgl-color.rb - initialize_event # opengl-event.rb - end - - def default_options - { - :fullscreen=>nil, - :fov=>45, - :cursor=>nil, - :depth=>false, - :culling=>false, - :smooth=>false, - :delaytime=>1.0/60, - :framerate=>nil, - :runtime=>nil, - } - end - private :default_options - end -end +# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved. +# License: Ruby License + +require "sdl" +require "opengl" +require "sgl/sgl-color" +require "sgl/opengl-window" +require "sgl/opengl-color" +require "sgl/opengl-event" +require "sgl/opengl-draw" +require "sgl/sgl-sound" + +module SGL + class Application + def initialize + Thread.abort_on_exception = true + @options = default_options + initialize_window # opengl-window.rb + initialize_color # sgl-color.rb + initialize_event # opengl-event.rb + end + + def default_options + { + :fullscreen=>nil, + :fov=>45, + :cursor=>nil, + :depth=>false, + :culling=>false, + :smooth=>false, + :delaytime=>1.0/60, + :framerate=>nil, + :runtime=>nil, + } + end + private :default_options + end +end