PSPSDK 2024-12-16
Loading...
Searching...
No Matches
gumInternal.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
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
25extern int gum_current_mode;
26extern int gum_matrix_update[4];
31
32extern struct pspvfpu_context *gum_vfpucontext;
33
34#endif
ScePspFMatrix4 * gum_stack_depth[4]
Definition gumInternal.c:20
struct pspvfpu_context * gum_vfpucontext
Definition gumInternal.c:30
ScePspFMatrix4 * gum_current_matrix
Definition gumInternal.c:18
int gum_matrix_update[4]
Definition gumInternal.c:15
int gum_current_mode
Definition gumInternal.c:13
int gum_current_matrix_update
Definition gumInternal.c:16
ScePspFMatrix4 gum_matrix_stack[4][32]
Definition gumInternal.c:28
Definition psptypes.h:300
Definition pspvfpu.c:19