minimal + export
This commit is contained in:
parent
b1c8be9dd6
commit
b568b16322
5 changed files with 325 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue