class Mittsu::SpriteMaterial
Attributes
fog[RW]
map[RW]
rotation[RW]
Public Class Methods
new(parameters = {})
click to toggle source
Calls superclass method
Mittsu::Material::new
# File lib/mittsu/materials/sprite_material.rb, line 24 def initialize(parameters = {}) super() @type = 'SpriteMaterial' @color = Color.new(0xffffff) @map = nil @rotation = 0.0 @fog = false set_values(parameters) end
Public Instance Methods
clone()
click to toggle source
Calls superclass method
Mittsu::Material#clone
# File lib/mittsu/materials/sprite_material.rb, line 39 def clone material = SpriteMaterial.new super(material) material.color.copy(@color) material.map = @map material.rotation = @rotation material.fog = @fog material end