danini-the-panini/mittsu-opengl

View on GitHub
lib/mittsu/opengl_implementation/objects/sprite.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Mittsu
  class Sprite
    def project(renderer)
      @renderer = renderer
      return unless visible
      init
      # TODO!!! FIXME!!!
      @renderer.instance_variable_get(:@sprites) << self
      project_children
    end
  end
end