Module: Mittsu::GenericLib
Defined Under Namespace
Classes: Linux
Instance Method Summary collapse
Instance Method Details
#discover ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/mittsu/renderers/generic_lib.rb', line 3 def discover case OpenGL.get_platform when :OPENGL_PLATFORM_WINDOWS self::Windows.new when :OPENGL_PLATFORM_MACOSX self::MacOS.new when :OPENGL_PLATFORM_LINUX self::Linux.new else fail "Unsupported platform." end end |