20 #include <GL/freeglut.h> 21 #include "linmath/float3.h" 22 #include "linmath/float4x4.h" 23 #include "assimp/material.h" 39 bool fequals(
double a,
double b);
41 float degreeToRad(
const float degree);
43 float radToDegree(
const float rad);
45 float getRand(
const float min,
const float max);
47 template <
typename T,
unsigned S>
48 T getRandomElem(
const T (&ts)[S]);
50 void updateMinAndMax(
const float x,
const float y,
const float z, chag::float3* minV, chag::float3* maxV);
52 chag::float3 createRandomVector(
const float minValue,
const float maxValue);
57 chag::float4x4 convertAiMatrixToFloat4x4(aiMatrix4x4 fromMatrix) ;
61 chag::float3x3 convertAiMatrixToFloat3x3(aiMatrix3x3 fromMatrix) ;
63 typedef std::pair<GameObject*, GameObject*> CollisionPair;
64 typedef std::vector<CollisionPair> CollisionPairList;
Class for maintaining OpenGL shader programs.
A class for containing all information about a object in the game world.