Module: Ruby2D
- Defined in:
- lib/ruby2d/font.rb,
lib/ruby2d.rb,
lib/ruby2d/line.rb,
lib/ruby2d/quad.rb,
lib/ruby2d/text.rb,
lib/ruby2d/color.rb,
lib/ruby2d/image.rb,
lib/ruby2d/music.rb,
lib/ruby2d/pixel.rb,
lib/ruby2d/sound.rb,
lib/ruby2d/circle.rb,
lib/ruby2d/entity.rb,
lib/ruby2d/sprite.rb,
lib/ruby2d/square.rb,
lib/ruby2d/window.rb,
lib/ruby2d/texture.rb,
lib/ruby2d/tileset.rb,
lib/ruby2d/version.rb,
lib/ruby2d/triangle.rb,
lib/ruby2d/vertices.rb,
lib/ruby2d/rectangle.rb,
lib/ruby2d/exceptions.rb,
lib/ruby2d/renderable.rb
Overview
Ruby2D::Renderable
Defined Under Namespace
Modules: DSL, Renderable Classes: Circle, Color, Entity, Error, Font, Image, Line, Music, Pixel, Quad, Rectangle, Sound, Sprite, Square, Text, Texture, Tileset, Triangle, Vertices, Window
Constant Summary collapse
- Colour =
Allow British English spelling of color
Color- VERSION =
'0.11.3'
Class Method Summary collapse
Class Method Details
.assets ⇒ Object
41 42 43 |
# File 'lib/ruby2d.rb', line 41 def self.assets "#{gem_dir}/assets" end |
.gem_dir ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/ruby2d.rb', line 32 def self.gem_dir # mruby doesn't define `Gem` if RUBY_ENGINE == 'mruby' `ruby -e "print Gem::Specification.find_by_name('ruby2d').gem_dir"` else Gem::Specification.find_by_name('ruby2d').gem_dir end end |
.test_media ⇒ Object
45 46 47 |
# File 'lib/ruby2d.rb', line 45 def self.test_media "#{gem_dir}/assets/test_media" end |