From 4fc6072d115cd0d2c4f523eab5b246ef7b26f741 Mon Sep 17 00:00:00 2001 From: iutbgdin Date: Thu, 9 Oct 2025 11:19:08 +0200 Subject: [PATCH] init --- assets/carte.map | 3 +++ main.cpp | 0 mapObject.cpp | 0 objObject.cpp | 13 +++++++++++++ planeObject.cpp | 12 ++++++++++++ pointObject.cpp | 15 +++++++++++++++ 6 files changed, 43 insertions(+) create mode 100644 assets/carte.map create mode 100644 main.cpp create mode 100644 mapObject.cpp create mode 100644 objObject.cpp create mode 100644 planeObject.cpp create mode 100644 pointObject.cpp 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; +}