project64/Source/Project64-video/3dmath.h

29 lines
1.6 KiB
C
Raw Normal View History

2017-04-26 10:23:36 +00:00
/***************************************************************************
* *
* Project64-video - A Nintendo 64 gfx plugin. *
* http://www.pj64-emu.com/ *
* Copyright (C) 2017 Project64. All rights reserved. *
* Copyright (C) 2003-2009 Sergey 'Gonetz' Lipski *
* Copyright (C) 2002 Dave2001 *
* *
* License: *
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
* version 2 of the License, or (at your option) any later version. *
* *
****************************************************************************/
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;