diff --git a/assets/carte.map b/assets/carte.map new file mode 100644 index 0000000..86b5887 --- /dev/null +++ b/assets/carte.map @@ -0,0 +1,3 @@ +MAP +0,0,0:cube +0.5,0.5,0.5:light diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..e69de29 diff --git a/mapObject.cpp b/mapObject.cpp new file mode 100644 index 0000000..e69de29 diff --git a/objObject.cpp b/objObject.cpp new file mode 100644 index 0000000..ea9cf0e --- /dev/null +++ b/objObject.cpp @@ -0,0 +1,13 @@ +#include "planeObject.cpp" + +class Object { + public: + Object(std::string txt); + Plane* getSides(); + char* getName(); + bool isContained(); + private: + Plane* sides; + char* name; + float* radius; +} diff --git a/planeObject.cpp b/planeObject.cpp new file mode 100644 index 0000000..58c0bd2 --- /dev/null +++ b/planeObject.cpp @@ -0,0 +1,12 @@ +#include +#include + +class Plane { + public: + Plane(std::string& text); + float* getPoints(); + uint64_t* getColor(); + private: + float* points; + uint64_t* color; +} diff --git a/pointObject.cpp b/pointObject.cpp new file mode 100644 index 0000000..ce482be --- /dev/null +++ b/pointObject.cpp @@ -0,0 +1,15 @@ +#include +#include + +class Point { + public: + Point(std::string& txt); + uint16_t 3dTranslate(); + float getX(); + float getY(); + float getZ(); + private: + float x; + float y; + float z; +}