Sha256: 18c24d67e1a038fdacc92e5260f6e47dc8a459fc98e793aa28c2798a9fcb7795

Contents?: true

Size: 292 Bytes

Versions: 11

Compression:

Stored size: 292 Bytes

Contents

require 'dub'
require 'dub/lua'
require 'pathname'

dub = Dub.parse(Pathname(__FILE__).dirname + 'xml/namespacedub.xml')[:dub]

Dub::Lua.bind(dub)

File.open(Pathname(__FILE__).dirname + "bindings/all_lua.cpp", 'wb') do |f|
  %w{Matrix FloatMat}.each do |name|
    f.puts dub[name]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dub-1.0.0 test/fixtures/app/make_lua_bindings.rb
dub-0.7.0 test/fixtures/app/make_lua_bindings.rb
dub-0.6.6 test/fixtures/app/make_lua_bindings.rb
dub-0.6.5 test/fixtures/app/make_lua_bindings.rb
dub-0.6.4 test/fixtures/app/make_lua_bindings.rb
dub-0.6.3 test/fixtures/app/make_lua_bindings.rb
dub-0.6.2 test/fixtures/app/make_lua_bindings.rb
dub-0.6.1 test/fixtures/app/make_lua_bindings.rb
dub-0.6.0 test/fixtures/app/make_lua_bindings.rb
dub-0.5.1 test/fixtures/app/make_lua_bindings.rb
dub-0.5.0 test/fixtures/app/make_lua_bindings.rb