Sha256: 9649a02bbcbbc44a18ac55d3bee4466ba89a707d896098e6e5375d81fbe0c08b

Contents?: true

Size: 592 Bytes

Versions: 5

Compression:

Stored size: 592 Bytes

Contents

module Joybox
  module Configuration

    class Texture2D < CCTexture2D

      def self.default_configuration
        {

          default_alpha_pixel_format: KCCTexture2DPixelFormat_RGBA8888,
          pvr_images_have_premultiplied_alpha: true

        }
      end


      def self.configure(options = {})

        options = options.nil? ? default_configuration : default_configuration.merge!(options)

        defaultAlphaPixelFormat = options[:default_alpha_pixel_format] 
        PVRImagesHavePremultipliedAlpha(options[:pvr_images_have_premultiplied_alpha])
      end

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
joybox-1.0.0 motion/joybox-ios/configuration/texture_2d.rb
joybox-0.0.6 motion/joybox-ios/configuration/texture_2d.rb
joybox-0.0.5 lib/joybox/cocos2d/configuration/texture_2d.rb
joybox-0.0.4 lib/joybox/cocos2d/configuration/texture_2d.rb
joybox-0.0.3 lib/joybox/cocos2d/configuration/texture_2d.rb