minimal + export

This commit is contained in:
Frater 2026-05-10 14:20:34 +02:00
commit b568b16322
5 changed files with 325 additions and 2 deletions

View file

@ -9,12 +9,14 @@ void mat3_identity(Matrix3 *mat) {
}
void init_engine_math(void) {
#ifndef MINIMAL_PLAYER
int i;
for (i = 0; i < 360; i++) {
double r = (double)i * 3.14159265 / 180.0;
sintab[i] = (fixed)(sin(r) * 65536.0);
costab[i] = (fixed)(cos(r) * 65536.0);
}
#endif
}
void mat3_mul(Matrix3 *res, Matrix3 *a, Matrix3 *b) {