Module: OpenGLLib

Defined in:
lib/mittsu/renderers/opengl/opengl_lib.rb

Defined Under Namespace

Classes: Linux, MacOS, Windows

Class Method Summary collapse

Class Method Details

.discoverObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/mittsu/renderers/opengl/opengl_lib.rb', line 2

def self.discover
  case OpenGL.get_platform
  when :OPENGL_PLATFORM_WINDOWS
    Windows.new
  when :OPENGL_PLATFORM_MACOSX
    MacOS.new
  when :OPENGL_PLATFORM_LINUX
    Linux.new
  else
    fail "Unsupported platform."
  end
end