class Mittsu::VideoTexture

Public Class Methods

new(video = nil, mapping = DEFAULT_MAPPING, wrap_s = ClampToEdgeWrapping, wrap_t = ClampToEdgeWrapping, mag_filter = LinearFilter, min_filter = LinearMipMapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = 1) click to toggle source
Calls superclass method Mittsu::Texture::new
# File lib/mittsu/textures/video_texture.rb, line 5
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