Sha256: 6e5e10adf9c215b3769e6b845510e64803e62c2fcb3d6c5804bcce7348a9731e

Contents?: true

Size: 677 Bytes

Versions: 6

Compression:

Stored size: 677 Bytes

Contents

require 'ffi'
require 'benchmark'
module GameMachine
  module Navigation
    module Detour
      extend FFI::Library
      sofile = File.join(File.dirname(__FILE__), '../../../pathfinding/bin/libdetour_path.so')
      if File.exists?(sofile)
        ffi_lib sofile
        attach_function :findPath, [:pointer,:float,:float,:float,:float,:float,:float, :int, :pointer], :int
        attach_function :loadNavMesh, [:int, :string], :int
        attach_function :freePath, [:pointer], :void
        attach_function :getPathPtr, [:int], :pointer
        attach_function :freeQuery, [:pointer], :void
        attach_function :getQuery, [:int], :pointer
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 lib/game_machine/navigation/detour.rb
game_machine-1.0.2 lib/game_machine/navigation/detour.rb
game_machine-0.0.11 lib/game_machine/navigation/detour.rb
game_machine-0.0.10 lib/game_machine/navigation/detour.rb
game_machine-0.0.9 lib/game_machine/navigation/detour.rb
game_machine-0.0.8 lib/game_machine/navigation/detour.rb