Class: Mittsu::GLFWLib::Linux

Inherits:
Mittsu::GenericLib::Linux show all
Defined in:
lib/mittsu/renderers/glfw_lib.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Mittsu::GenericLib::Linux

#file, kernel_module_in_use, #path, sixtyfour_bits?

Methods inherited from Mittsu::GenericLib::Base

#file, #path

Constructor Details

#initialize(loader = Linux) ⇒ Linux

Returns a new instance of Linux.



8
9
10
# File 'lib/mittsu/renderers/glfw_lib.rb', line 8

def initialize(loader = Linux)
  @loader = loader
end

Class Method Details

.ldconfigObject



19
20
21
22
23
# File 'lib/mittsu/renderers/glfw_lib.rb', line 19

def ldconfig
  `ldconfig -p | grep 'libglfw3\\?\\.so'`.lines
rescue
  []
end

.libgl_pathsObject



13
14
15
16
17
# File 'lib/mittsu/renderers/glfw_lib.rb', line 13

def libgl_paths
  Dir.glob('/usr/lib*/**/libglfw*.so*')
rescue
  []
end