I am new to Emscripten/javascript as well as this Overstack community.  I apologize, in advance, if my situation has already been addressed.      From a windows 7 environment, I've used emcc to compile a simple c program which accepts an array an...
I have a C program that takes one argument (a char array / string) via command line and also reads from stdin. I've compiled it to JavaScript using emscripten. This was successful and I can run it just like the normal C program using node.js:  em...
I'm trying to transpose to vue.js this simple html page add.html:  <!DOCTYPE html> <html>   <head>     <meta charset="utf-8"/>   </head>   <body>     <input type="button" value="Add"...
As you can read here: https://forum.vuejs.org/t/wasm-how-to-correctly-call-a-webassembly-method-in-vue-js/83422/24 I'm trying to figure out how to import a module generated by emscripten in Vue.js in order to call its methods.  Following the indi...
I would like to test WebAssembly for doing some complex array calculations.   So I've written a simple C++ function adding two int arrays containing 3 elements each  :  // hello.cpp extern "C" {  void array_add(int * summed, int* a, int*...
I have a very large ArrayBuffer (or TypedArray) in JavaScript that I want to pass to an emscriptened function. I'd like to pass the raw bytes without incurring a copy.    If my C/C++ function takes an std::string as in:  void processBuffer(std::s...
As far as I know, Asm.js is just a strict specification of JavaScript, it uses the JavaScript features and it's not a new language.  For instance, instead of using var a = e;, it offers var a = e|0;.  My question is, if asm.js is just a definitio...
I would like to port a C library. There is a really short tutorial about it here: Interacting with code  I need to create a struct using javascript, and return a pointer to it. I looked into the libraries, which are already ported. My code looks like...
I'm trying to build a basic webworker example in C++ with emscripten. The API looks very simple, but I can't get it working. I actually wanted to implement this functionality in my project, but after failing tried to make a minimal example an...
I have written a tile-based engine - everything looks fine as long as antialiasing is disabled in WebGL.  When antialiasing is enabled, sometimes pixels of the edge of tiles will get rendered which mostly show up as background pixels and fill in the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.