Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

105 Neutral

About jjrv

  • Rank

Personal Information

  • Interests
  1. I wrote a blog post about drawing quads without having to transfer additional data to the GPU compared to drawing gl.POINTS. Is this already well-known? I haven't seen the technique used in popular engines like PixiJS.
  2. I've just released nbind ( https://github.com/charto/nbind#readme ) which builds C++ projects into asm.js for web apps and native binary addons for Node.js or Electron. It works with GCC, Clang, Visual Studio and Emscripten on Linux, Windows and OS X.   nbind comes with headers using C++ templates that allow adding this kind of declaration at the end of a C++ source file: #include "nbind/nbind.h" NBIND_CLASS(MyClass) {   method(myMethod);   method(anotherMethod); } It auto-detects types of method parameters and return values using template magic (including things like std::vector<std::string>), and generates necessary bindings for calling the code from JavaScript or TypeScript. Native binaries and asm.js modules are easy to bundle into npm packages. Additionally asm.js modules can be included in web apps with script tags. The actual C++ code doesn't need any other changes.   nbind configures node-gyp which can generate makefiles and Visual Studio solutions targeting both native code (using above mentioned C++ compilers) and asm.js (using Emscripten). The user guide in the readme should explain everything in more detail.  
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!