move src2 -> src, web2 -> web, remove old module system, fix deps

This commit is contained in:
Stewart Allen 2025-07-06 23:44:33 -04:00
commit ce4f5d6e78
488 changed files with 26179 additions and 26609 deletions

24
src.old/wasm/kiri-ani.c Normal file
View file

@ -0,0 +1,24 @@
#include <emscripten.h>
#include <string.h>
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned int Uint32;
extern void reportf(float a, float b);
extern void reporti(int a, int b);
/**
* m = memory base pointer
* im = input memory location (mesh)
* it = input memory location (tool)
* ol = output memory location (mesh-updates)
* returns length of update at output memory location
*/
EMSCRIPTEN_KEEPALIVE
Uint32 updateMesh(unsigned char *m, Uint32 im, Uint32 it, Uint32 ol) {
int rv = m[0] + m[100] + m[200];
m[0] = 123;
reporti(m[100],m[200]);
return rv;
}