- Main Page
- Classes
- Files

- File List
- File Members

# flTypes.h File Reference

`#include <psptypes.h>`

Go to the source code of this file.

## Classes
struct | vertVs
struct | vertVf
struct | vertCVs
struct | vertCVf
struct | vertcVf
struct | vertTfCVs
struct | vertTfCVf
struct | vertTfVf
struct | vertTfVs
struct | vertTsVf
struct | vertTsVs
struct | Line2d
struct | Triangle2d
struct | Circle2d
struct | Ellipse2d
struct | Quad2d
struct | Rect2d
## Defines
#define | false 0
#define | true !false
#define | FALSE 0
#define | TRUE !FALSE
#define | False 0
#define | True !False
#define | null ((void *)0)
#define | INVALID ((dword)-1)
#define | vect2f_Cmp(inVect0, inVect1) (((inVect0).x == (inVect1).x) && ((inVect0).y == (inVect1).y))
#define | vect2f_Add(inVect0, inVect1) ((vect2f){ ((inVect0).x + (inVect1).x), ((inVect0).y + (inVect1).y) })
#define | vect2f_Sub(inVect0, inVect1) ((vect2f){ ((inVect0).x - (inVect1).x), ((inVect0).y - (inVect1).y) })
#define | vect3f_Cmp(inVect0, inVect1) (((inVect0).x == (inVect1).x) && ((inVect0).y == (inVect1).y) && ((inVect0).z == (inVect1).z))
#define | vect3f_Add(inVect0, inVect1) ((vect3f){ ((inVect0).x + (inVect1).x), ((inVect0).y + (inVect1).y), ((inVect0).z + (inVect1).z) })
#define | vect3f_Sub(inVect0, inVect1) ((vect3f){ ((inVect0).x - (inVect1).x), ((inVect0).y - (inVect1).y), ((inVect0).z - (inVect1).z) })
#define | vect3f_Mulf(inVect, inFloat) ((vect3f){ ((inVect).x * (inFloat)), ((inVect).y * (inFloat)), ((inVect).y * (inFloat)) })
## Typedefs
typedef u8 | uint8
typedef u16 | uint16
typedef u32 | uint32
typedef u64 | uint64
typedef s8 | int8
typedef unsigned char | byte
typedef unsigned short | word
typedef unsigned long | dword
typedef char | bool
| This could be an int, but I prefer to use a char as it's smaller.
typedef bool | boolean
typedef ScePspFVector2 | vect2f
typedef ScePspFVector3 | vect3f
typedef ScePspFVector4 | vect4f
typedef vect4f | quat4f

## Define Documentation

#define False 0

Definition at line 67 of file flTypes.h.

#define FALSE 0

Definition at line 59 of file flTypes.h.

#define false 0

Definition at line 51 of file flTypes.h.

#define INVALID ((dword)-1)

Definition at line 83 of file flTypes.h.

#define NULL ((void *)0)

Definition at line 79 of file flTypes.h.

Referenced by callbackCreateThread(), camCreate(), fileExtension(), fileGets(), fileNameFromPath(), fileOpen(), filePathValidate(), fontCreateDebug(), fontCreateTexture(), fontDraw2dChar(), fontDraw2dString(), fontLoad(), graphicsEffectFsColorEnhance(), graphicsEffectFsDepthFog(), graphicsEffectFsDichrome(), graphicsEffectFsGlow(), graphicsEffectFsGrayscale(), graphicsEffectFsInvert(), graphicsEffectFsLightEnhance(), graphicsEffectFsMonochrome(), graphicsEffectFsNightVision(), graphicsEffectFsThermalVision(), graphicsSwapBuffers(), graphicsSwizzleData(), graphicsUnswizzleData(), mdl3dAnimLoad(), mdl3dAnimLoadMD2(), mdl3dStatDrawTextured(), mdl3dStatLoad(), mdl3dStatLoadOBJ(), mdl3dStatLoadOBJ_faceRead(), memAlignFrom(), memAllocUncachedFrom(), memCallocFrom(), mempAlign(), mempAlloc(), mempCalloc(), mempCreate(), mempRealloc(), memReallocFrom(), memtAddFrom(), memtDelFrom(), memUncachedPtrFrom(), palCreate(), palFree(), spriteCreate(), texBind(), texCreate(), texCreateBlank(), texFree(), texLoad(), texLoadBMP(), texLoadPCX(), texLoadTGA(), texScreenshot(), texTreeAdd(), texTreeFindNodeByTex(), texTreeFindNodeByTexR(), texTreeFindPathByTex(), texTreeFindTexByPath(), timerCreate(), vmemAllocFrom(), vmemCallocFrom(), vmemNormalPtr(), vmemReallocFrom(), vmemStrideAlign(), and vmemStrideBlockAdd().

#define null ((void *)0)

Definition at line 75 of file flTypes.h.

#define True !False

Definition at line 71 of file flTypes.h.

#define TRUE !FALSE

Definition at line 63 of file flTypes.h.

#define true !false

Definition at line 55 of file flTypes.h.

#define vect2f_Add | ( | inVect0,
|  | inVect1 |  | ) | ((vect2f){ ((inVect0).x + (inVect1).x), ((inVect0).y + (inVect1).y) })

Definition at line 185 of file flTypes.h.

#define vect2f_Cmp | ( | inVect0,
|  | inVect1 |  | ) | (((inVect0).x == (inVect1).x) && ((inVect0).y == (inVect1).y))

Definition at line 184 of file flTypes.h.

#define vect2f_Sub | ( | inVect0,
|  | inVect1 |  | ) | ((vect2f){ ((inVect0).x - (inVect1).x), ((inVect0).y - (inVect1).y) })

Definition at line 186 of file flTypes.h.

#define vect3f_Add | ( | inVect0,
|  | inVect1 |  | ) | ((vect3f){ ((inVect0).x + (inVect1).x), ((inVect0).y + (inVect1).y), ((inVect0).z + (inVect1).z) })

Definition at line 189 of file flTypes.h.

Referenced by camMove(), and camView().

#define vect3f_Cmp | ( | inVect0,
|  | inVect1 |  | ) | (((inVect0).x == (inVect1).x) && ((inVect0).y == (inVect1).y) && ((inVect0).z == (inVect1).z))

Definition at line 188 of file flTypes.h.

Referenced by mdl3dStatOptimize().

#define vect3f_Mulf | ( | inVect,
|  | inFloat |  | ) | ((vect3f){ ((inVect).x * (inFloat)), ((inVect).y * (inFloat)), ((inVect).y * (inFloat)) })

Definition at line 191 of file flTypes.h.

#define vect3f_Sub | ( | inVect0,
|  | inVect1 |  | ) | ((vect3f){ ((inVect0).x - (inVect1).x), ((inVect0).y - (inVect1).y), ((inVect0).z - (inVect1).z) })

Definition at line 190 of file flTypes.h.

Referenced by camMoveTo().

## Typedef Documentation

typedef char bool

This could be an int, but I prefer to use a char as it's smaller.

Definition at line 43 of file flTypes.h.

typedef bool boolean

Definition at line 47 of file flTypes.h.

typedef unsigned char byte

Definition at line 31 of file flTypes.h.

typedef unsigned long dword

Definition at line 39 of file flTypes.h.

typedef s8 int8

Definition at line 27 of file flTypes.h.

typedef vect4f quat4f

Definition at line 155 of file flTypes.h.

typedef u16 uint16

Definition at line 15 of file flTypes.h.

typedef u32 uint32

Definition at line 19 of file flTypes.h.

typedef u64 uint64

Definition at line 23 of file flTypes.h.

typedef u8 uint8

Definition at line 11 of file flTypes.h.

typedef ScePspFVector2 vect2f

Definition at line 151 of file flTypes.h.

typedef ScePspFVector3 vect3f

Definition at line 152 of file flTypes.h.

typedef ScePspFVector4 vect4f

Definition at line 153 of file flTypes.h.

typedef unsigned short word

Definition at line 35 of file flTypes.h.