Sha256: c520ed62890e2f1996ff24670fe2881262b565e0ec000b38ee31b48754555585

Contents?: true

Size: 244 Bytes

Versions: 13

Compression:

Stored size: 244 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mittsu-opengl-0.5.1 lib/mittsu/opengl_implementation/objects/sprite.rb
mittsu-0.4.1 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-opengl-0.5.0 lib/mittsu/opengl_implementation/objects/sprite.rb
mittsu-0.4.0 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.3.3 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.3.2 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.3.1 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.3.0 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.2.4 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.2.3 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.2.2 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.2.1 lib/mittsu/renderers/opengl/objects/sprite.rb
mittsu-0.2.0 lib/mittsu/renderers/opengl/objects/sprite.rb