Sha256: 8de58c9e8bae615965b30b104ecc9dc1bdbc024c004142f6708c423b4799a310

Contents?: true

Size: 646 Bytes

Versions: 20

Compression:

Stored size: 646 Bytes

Contents

require 'mittsu/textures/texture'

module Mittsu
  class VideoTexture < Texture
    def initialize(video = nil, mapping = DEFAULT_MAPPING, wrap_s = ClampToEdgeWrapping, wrap_t = ClampToEdgeWrapping, mag_filter = LinearFilter, min_filter = LinearMipMapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = 1)
      super(video, mapping, wrap_s, wrap_t, mag_filter, min_filter, format, type, anisotropy)

      @generate_mipmaps = false

      # TODO: update ???
      # requestAnimationFrame( update );
      # if ( video.readyState === video.HAVE_ENOUGH_DATA ) {
      #   scope.needsUpdate = true;
      # }
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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