Refactored factory and component system.
This commit is contained in:
+7
-15
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user