Refactored factory and component system.

This commit is contained in:
2014-03-07 01:08:54 +01:00
parent 18197bf21d
commit e65db077d5
30 changed files with 313 additions and 284 deletions
+7 -15
View File
@@ -1,23 +1,15 @@
#ifndef AABB_h__
#define AABB_h__
#include <GL/glew.h>
//#define GLFW_INCLUDE_GLU
//#include <GLFW/glfw3.h>
//#include <glext.h>
#include <glm/common.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/glm.hpp>
class AABB
struct AABB
{
public:
AABB(glm::vec3, glm::vec3);
void CreateBB(void);
AABB(glm::vec3 origin, glm::vec3 volumeVector)
: Origin(origin), VolumeVector(volumeVector) { }
private:
glm::vec3 origin;
glm::vec3 volumeVector; //The vector that defines the volume of the BB, it goes from one corner to the opposite one
glm::vec3 Origin;
glm::vec3 VolumeVector; //The vector that defines the volume of the BB, it goes from the origin to a corner
};
#endif // !AABB_h__