Changeset 17197 for lang/ruby/nario

Show
Ignore:
Timestamp:
08/07/08 16:19:58 (7 years ago)
Author:
authorNari
Message:

add rskit

Location:
lang/ruby/nario
Files:
1024 added
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/nario/lib/sdl_helper.rb

    r17193 r17197  
     1class << SDL::Surface 
     2  alias :org_load :load 
     3end 
     4 
    15class SDL::Surface 
     6  def self.load(path) 
     7    org_load("#{File.join(File.dirname(__FILE__), "..")}/#{path}") 
     8  end 
     9 
    210  def rotate_surface(angle, color) 
    311    transform_surface(color, angle, 1, 1, TRANSFORM_SAFE) 
    412  end 
    513end 
     14