pspsdk-1.0+beta2
gumInternal.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * Copyright (c) 2005 Jesper Svennevid
7  */
8 
9 #ifndef __gumInternal_h__
10 #define __gumInternal_h__
11 
12 #include <alloca.h>
13 
14 #include "pspgum.h"
15 #include "../gu/pspgu.h"
16 
17 #define GUM_EPSILON 0.00001f
18 
19 //#define GUM_USE_VFPU
20 
21 // these macros are because GCC cannot handle aligned matrices declared on the stack
22 #define GUM_ALIGNED_MATRIX() (ScePspFMatrix4*)((((unsigned int)alloca(sizeof(ScePspFMatrix4)+64)) + 63) & ~63)
23 #define GUM_ALIGNED_VECTOR() (ScePspFVector4*)((((unsigned int)alloca(sizeof(ScePspFVector4)+64)) + 63) & ~63)
24 
25 extern int gum_current_mode;
26 extern int gum_matrix_update[4];
27 extern int gum_current_matrix_update;
30 extern ScePspFMatrix4 gum_matrix_stack[4][32];
31 
32 extern struct pspvfpu_context *gum_vfpucontext;
33 
34 #endif