Init zig project with raylib bindings

This commit is contained in:
2026-05-05 23:13:26 +02:00
commit c7897e55a8
1532 changed files with 642271 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#include <emscripten/bind.h>
using namespace emscripten;
class HelloClass {
public:
static std::string SayHello(const std::string &name) {
return "Yo! " + name;
};
};
EMSCRIPTEN_BINDINGS(Hello) {
emscripten::class_<HelloClass>("HelloClass")
.constructor<>()
.class_function("SayHello", &HelloClass::SayHello);
}