2021-03-02 02:13:17 +00:00
|
|
|
// Project64 - A Nintendo 64 emulator
|
|
|
|
// http://www.pj64-emu.com/
|
|
|
|
// Copyright(C) 2001-2021 Project64
|
|
|
|
// Copyright(C) 2003-2009 Sergey 'Gonetz' Lipski
|
|
|
|
// Copyright(C) 2002 Dave2001
|
|
|
|
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
|
2017-08-16 22:18:19 +00:00
|
|
|
void calc_light(gfxVERTEX &v);
|
|
|
|
void calc_linear(gfxVERTEX &v);
|
|
|
|
void calc_sphere(gfxVERTEX &v);
|
2013-04-04 21:22:19 +00:00
|
|
|
|
|
|
|
void math_init();
|
|
|
|
|
2017-04-26 10:23:36 +00:00
|
|
|
typedef void(*MULMATRIX)(float m1[4][4], float m2[4][4], float r[4][4]);
|
2013-04-04 21:22:19 +00:00
|
|
|
extern MULMATRIX MulMatrices;
|
2017-04-26 10:23:36 +00:00
|
|
|
typedef void(*TRANSFORMVECTOR)(float *src, float *dst, float mat[4][4]);
|
2013-04-04 21:22:19 +00:00
|
|
|
extern TRANSFORMVECTOR TransformVector;
|
|
|
|
extern TRANSFORMVECTOR InverseTransformVector;
|
2017-04-26 10:23:36 +00:00
|
|
|
typedef float(*DOTPRODUCT)(register float *v1, register float *v2);
|
2013-04-04 21:22:19 +00:00
|
|
|
extern DOTPRODUCT DotProduct;
|
2017-04-26 10:23:36 +00:00
|
|
|
typedef void(*NORMALIZEVECTOR)(float *v);
|
2013-04-04 21:22:19 +00:00
|
|
|
extern NORMALIZEVECTOR NormalizeVector;
|