#ifndef __TYPES__ #define __TYPES__ #include #include typedef struct Vertex Vertex; typedef struct Vector Normal; typedef struct IntVector IntVector; typedef struct AxisAlignedBox AxisAlignedBox; typedef struct Point2f Point2f; typedef struct Rect4f Rect4f; typedef struct TrimeshFace TrimeshFace; typedef struct Plane Plane; #include "Vector.h" #define FLOAT_PAD 0.0001f #define SIN_45_DEGREES 0.70710678118654757273731092936941422522068023681640625 struct Vertex { GLfloat x; GLfloat y; GLfloat z; GLfloat w; }; struct IntVector { int x; int y; int z; }; struct AxisAlignedBox { float left; float right; float bottom; float top; float back; float front; }; struct Point2f { float x; float y; }; struct Rect4f { float left; float bottom; float right; float top; }; struct TrimeshFace { Vector vertices[3]; Vector normal; bool collided; }; struct Plane { Vector normal; float distance; }; Point2f Point2fWithValues(float x, float y); Rect4f Rect4fWithValues(float left, float bottom, float right, float top); #endif