class Mittsu::LineBasicMaterial
Attributes
line_cap[RW]
line_join[RW]
line_width[RW]
Public Class Methods
new(parameters = {})
click to toggle source
Calls superclass method
# File lib/mittsu/materials/line_basic_material.rb, line 5 def initialize(parameters = {}) super() @type = 'LineBasicMaterial' @color = Color.new(0xffffff) @line_width = 1.0 @line_cap = :round @line_join = :round @vertex_colors = NoColors @fog = true self.set_values(parameters) end
Public Instance Methods
clone()
click to toggle source
Calls superclass method
# File lib/mittsu/materials/line_basic_material.rb, line 23 def clone LineBasicMaterial.new.tap do |material| super(material) material.color.copy(@color) material.line_width = @line_width material.line_cap = @line_cap material.line_join = @line_join material.vertex_colors = @vertex_colors material.fog = @fog end end