Initial v2 water map format.

This commit is contained in:
KimLS
2014-05-20 00:14:26 -07:00
parent cc6dce25ad
commit 8c92271804
275 changed files with 57009 additions and 15 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef EQEMU_ORIENTED_BOUNDNG_BOX_H
#define EQEMU_ORIENTED_BOUNDNG_BOX_H
#include <glm.hpp>
class OrientedBoundingBox
{
public:
OrientedBoundingBox() { }
OrientedBoundingBox(glm::vec3 pos, glm::vec3 rot, glm::vec3 scale, glm::vec3 extents);
~OrientedBoundingBox() { }
bool ContainsPoint(glm::vec3 p) const;
glm::mat4& GetTransformation() { return transformation; }
glm::mat4& GetInvertedTransformation() { return inverted_transformation; }
private:
float min_x, max_x;
float min_y, max_y;
float min_z, max_z;
glm::mat4 transformation;
glm::mat4 inverted_transformation;
};
#endif