Sha256: fe8848c098836f075c9f376d6a9383f8df2b77fa1611ce928f17ba6296f946cd
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
module Dedalus class ImageRepository def self.lookup(path) @images ||= {} @images[path] ||= Gosu::Image.new(path) @images[path] end def self.lookup_tiles(path, width, height) @tiles ||= {} @tiles[path] ||= Gosu::Image::load_tiles(path, width, height) @tiles[path] end def self.lookup_recording(id,width,height,window,&blk) p [ :lookup_recording, id: id ] @recordings ||= {} @recordings[id] ||= window.record(width,height,&blk) @recordings[id] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dedalus-0.2.13 | lib/dedalus/image_repository.rb |