File: sdl1_compatible.rb

package info (click to toggle)
ruby-sdl 2.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,344 kB
  • ctags: 4,200
  • sloc: cpp: 7,598; ansic: 4,475; ruby: 2,258; sh: 102; makefile: 97
file content (20 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

module SDL
  module_function
  
  def setVideoMode(*args)
    SDL::Screen.open(*args)
  end
  def blitSurface(*args)
    SDL::Screen.blit(*args)
  end

  class Surface
    extend Forwardable
    def_delegators :format, :mapRGB, :mapRGBA, :getRGB, :getRGBA
    def_delegators :format, :bpp, :colorkey, :alpha
    def_delegators :format, :Rmask, :Gmask, :Bmask, :Amask
  end

  Event2 = Event
end