Sha256: 2691454dbd746154061310d66c7e5a1d6061f1b0cade2a64c27a25a430b10a75

Contents?: true

Size: 355 Bytes

Versions: 20

Compression:

Stored size: 355 Bytes

Contents

module Mittsu
  class DynamicBufferAttribute < Mittsu::BufferAttribute
    UpdateRange = Struct.new(:offset, :count)

    attr_accessor :update_range

    def initialize(array, item_size)
      super
      @update_range = UpdateRange.new(0, -1)
    end

    def clone
      Mittsu::DynamicBufferAttribute(self.array.dup, self.item_size)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mittsu-0.5.0 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.4.1 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.4.0 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.3.3 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.3.2 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.3.1 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.3.0 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.2.4 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.2.3 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.2.2 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.2.1 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.2.0 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.7 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.6 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.5 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.4 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.3 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.2 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.1 lib/mittsu/core/dynamic_buffer_attribute.rb
mittsu-0.1.0 lib/mittsu/core/dynamic_buffer_attribute.rb