Sha256: 2fe937a16c9fa299c3bdf7e9bfb28081faeda1572a54ceba4a19724d1974e6f8

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

class WrappedScreen
  constructor :config_manager
  attr_accessor :screen
  def setup
    w,h = @config_manager[:screen_resolution]
    flags = []
    flags << HWSURFACE
    flags << DOUBLEBUF
    flags << FULLSCREEN if @config_manager[:fullscreen]
    flags << OPENGL if @config_manager[:opengl]
    @screen = Screen.open [w,h], 0, flags
  end
  def method_missing(name,*args)
    @screen.send name, *args
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gamebox-0.1.1 lib/gamebox/wrapped_screen.rb
gamebox-0.1.0 lib/gamebox/wrapped_screen.rb
gamebox-0.0.9 lib/gamebox/wrapped_screen.rb
gamebox-0.0.8 lib/gamebox/wrapped_screen.rb
gamebox-0.0.7 lib/gamebox/wrapped_screen.rb