Sha256: 7eaf8d6062c2ce45871c35913846c701a28763d7dff3eb6d189303d27d7c9b3f

Contents?: true

Size: 767 Bytes

Versions: 1

Compression:

Stored size: 767 Bytes

Contents

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-0.4.0 lib/sgl/opengl-app.rb