Giter VIP home page Giter VIP logo

luajit-bgfx's Introduction

luajit-bgfx

LuaJIT bindings for bgfx.

Win64 screenshot

(This is a port of work I've created for a personal project.)

The binding generator is barely sufficient for parsing the BGFX C headers.

It worked when I ran it 7 months ago, and it worked when I ran it today, so it might be useful for your own projects.

Generator requirements

The generator itself will run under any modern Lua.

However, you need cpp available in $PATH. I've only tested the generator on Linux.

And watch out for the hardcoded library paths in the bgfx_api.lua output. Just, you know, change them.

Bindings runtime requirements

Tested on LuaJIT on Windows, OSX, and Linux. Seems to work.

Oh: Only tested on (and designed for) 64-bit systems.

The example code especially may fall over on a 32-bit system. Who knows?

Directory layout

  • built/: Output from the bindings generator & a few binaries (warning: Arch Linux .so build)
  • bgfx-include/: What the binding generator builds from
  • example/: An example application using BGFX and GLFW together to show a quad
  • this directory: Fluff & the binding generator.

License: MIT for my work - the binding generator, basically. I use someone else's GLFW bindings in the example. And bgfx itself is of course courtesy of the wonderous @bkaradzic.

GLHF

luajit-bgfx's People

Contributors

leafi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.