Sha256: 54080ae21f70950b927792cef96ba7fc6137c7e47ba42ae5753c62c416dde10a

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 Bytes

Contents

require 'mittsu/renderers/generic_lib'

module Mittsu
  module GLFWLib
    extend GenericLib

    class Linux < GenericLib::Linux
      def initialize(loader = Linux)
        @loader = loader
      end

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

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

    class Windows
      def path; nil; end
      def file; nil; end
    end

    class MacOS
      def path
        '/usr/local/lib'
      end

      def file
        'libglfw3.dylib'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mittsu-0.2.1 lib/mittsu/renderers/glfw_lib.rb
mittsu-0.2.0 lib/mittsu/renderers/glfw_lib.rb
mittsu-0.1.7 lib/mittsu/renderers/glfw_lib.rb
mittsu-0.1.6 lib/mittsu/renderers/glfw_lib.rb