Sha256: c6c7724834458551ea57b78563f0218dd9d89c0c5546d52092b293b51d7e540b
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
module Joybox module Configuration class GLView < CCGLView extend Joybox::Common::Initialize def defaults { bounds: UIScreen.mainScreen.bounds, pixel_format: KEAGLColorFormatRGB565, depth_format: 0, preserve_backbuffer: 0, share_group: nil, multi_sampling: false, number_of_samples: 0 } end def initialize(options) options = options.nil? ? defaults : defaults.merge!(options) bounds = options[:bounds] bounds = [[bounds[:x], bounds[:y]], [bounds[:width], bounds[:height]]] if bounds.class == Hash initWithFrame(UIScreen.mainScreen.bounds, pixelFormat: options[:pixel_format], depthFormat: options[:depth_format], preserveBackbuffer: options[:preserve_backbuffer], sharegroup: options[:share_group], multiSampling: options[:multi_sampling], numberOfSamples: options[:number_of_samples]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox-ios/configuration/gl_view.rb |
joybox-1.1.0 | motion/joybox-ios/configuration/gl_view.rb |