A Collection of notes
Getting Visual Studio Code setup for Emscripten.
The Image struct
is interesting in the example.cc, where we use a templated struct. An "instance" of the struct is doesn't have a constructor like a class would. So a declaration of a variable also includes it's type Image≺int, width, height≻ scope;
creates a new image struct with it's type width and height named "scope".
more of an emscripten note:
In printf always add \n
at the end of the string. If not then the printf will not get printed to the js console. I guess there's something that needs to get "flushed"