A
download opengl-modules.rb
Language: Ruby
Copyright: (C) 2004-2005 Kouichirou Eto, All rights reserved.
LOC: 21
Project Info
etocom project(etocom)
Server: RubyForge (SVN)
Type: svn
...s\REL‑start_newgem\sgl\sgl\
   cocoa-app.rb
   cocoa-color.rb
   cocoa-draw.rb
   cocoa-event.rb
   cocoa-media.rb
   cocoa-notuse.rb
   cocoa-window.rb
   cocoa.rb
   make-release.rb
   opengl-app.rb
   opengl-color.rb
   opengl-draw.rb
   opengl-event.rb
   opengl-modules.rb
   opengl-window.rb
   opengl.rb
   qp.rb
   sgl-bass.rb
   sgl-button.rb
   sgl-spring.rb
   test-cocoa-app.rb
   test-opengl-app.rb

# Copyright (C) 2004-2005 Kouichirou Eto, All rights reserved.

module SGL
  # module control
  def useMidi()		$__a__.useMidi;		end
  def useMidiIn(*a)	$__a__.useMidiIn(*a)	end
  def useSound()	$__a__.useSound;	end

  class Application
    def useMidi
      require "sgl/sgl-midi"
      $__midi__ = SGLMidi.new
    end

    def useMidiIn(num = -1)
      require "sgl/sgl-midiin"
      printMidiDeviceNames
      openMidiIn(num)
      startMidiInThread
    end

    def useSound
      require "sgl/sgl-sound"
      $__sound__ = SGLSound.instance
    end
  end
end

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us