Sha256: 7ba71efac4c64dd133956a30633ac213a6d86fafed8acabddf1c8e1352dc3ced
Contents?: true
Size: 614 Bytes
Versions: 20
Compression:
Stored size: 614 Bytes
Contents
require 'mittsu/textures/texture' module Mittsu class DataTexture < Texture def initialize(data = nil, width = nil, height = nil, format = RGBAFormat, type = UnsignedByteType, mapping = DEFAULT_MAPPING, wrap_s = ClampToEdgeWrapping, wrap_t = ClampToEdgeWrapping, mag_filter = LinearFilter, min_filter = LinearMipMapLinearFilter, anisotropy = 1) super(null, mapping, wrap_s, wrap_t, mag_filter, min_filter, format, type, anisotropy) @image = { data: data, width: width, height: height } end def clone texture = DataTexture.new super(texture) texture end end end
Version data entries
20 entries across 20 versions & 1 rubygems