Module: Ruby2D
- Defined in:
- lib/ruby2d.rb,
lib/ruby2d/dsl.rb,
lib/ruby2d/font.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/canvas.rb,
lib/ruby2d/circle.rb,
lib/ruby2d/pixmap.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,
lib/ruby2d/pixmap_atlas.rb
Overview
Ruby2D::PixmapAtlas
Defined Under Namespace
Modules: DSL, Renderable Classes: Canvas, Circle, Color, Error, Font, Image, InvalidImageFileError, Line, Music, Pixel, Pixmap, PixmapAtlas, Quad, Rectangle, Sound, Sprite, Square, Text, Texture, Tileset, Triangle, UnknownImageFileError, Vertices, Window
Constant Summary collapse
- Colour =
Allow British English spelling of color
Color
- VERSION =
'0.12.1'
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Represents a window on screen, responsible for storing renderable graphics, event handlers, the update loop, showing and closing the window.
-
#width ⇒ Object
readonly
Represents a window on screen, responsible for storing renderable graphics, event handlers, the update loop, showing and closing the window.
Class Method Summary collapse
Instance Attribute Details
#height ⇒ Object (readonly)
Represents a window on screen, responsible for storing renderable graphics, event handlers, the update loop, showing and closing the window.
9 10 11 |
# File 'lib/ruby2d/window.rb', line 9 def height @height end |
#width ⇒ Object (readonly)
Represents a window on screen, responsible for storing renderable graphics, event handlers, the update loop, showing and closing the window.
9 10 11 |
# File 'lib/ruby2d/window.rb', line 9 def width @width end |
Class Method Details
.assets ⇒ Object
17 18 19 |
# File 'lib/ruby2d.rb', line 17 def self.assets "#{gem_dir}/assets" end |
.gem_dir ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/ruby2d.rb', line 8 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
21 22 23 |
# File 'lib/ruby2d.rb', line 21 def self.test_media "#{gem_dir}/assets/test_media" end |