This commit is contained in:
2026-05-06 17:52:45 -07:00
parent 9fc3f35125
commit 1463c23334
402 changed files with 3758 additions and 0 deletions

Binary file not shown.

1
wasm_trait_c/README.md Normal file
View File

@ -0,0 +1 @@
https://github.com/leenkx3d/leenkx/wiki/wasm

17
wasm_trait_c/main.c Normal file
View File

@ -0,0 +1,17 @@
#define WASM_EXPORT __attribute__((visibility("default")))
void notify_on_update(void* f);
int get_object(const char* name);
void set_transform(int object, float x, float y, float z, float rx, float ry, float rz, float sx, float sy, float sz);
WASM_EXPORT void update() {
static float rot = 0.0f;
rot += 0.01f;
set_transform(get_object("Cube"), 0, 0, 0, 0, 0, rot, 1, 1, 1);
}
// Include main function, Armory calls it when trait is instantiated
WASM_EXPORT int main() {
notify_on_update(update);
return 0;
}

BIN
wasm_trait_c/wasm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.