This commit is contained in:
iutbgdin 2025-10-09 11:19:08 +02:00
parent c0513fb17c
commit 4fc6072d11
6 changed files with 43 additions and 0 deletions

3
assets/carte.map Normal file
View file

@ -0,0 +1,3 @@
MAP
0,0,0:cube
0.5,0.5,0.5:light

0
main.cpp Normal file
View file

0
mapObject.cpp Normal file
View file

13
objObject.cpp Normal file
View file

@ -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;
}

12
planeObject.cpp Normal file
View file

@ -0,0 +1,12 @@
#include <cstdint>
#include <string>
class Plane {
public:
Plane(std::string& text);
float* getPoints();
uint64_t* getColor();
private:
float* points;
uint64_t* color;
}

15
pointObject.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <cstdint>
#include <string>
class Point {
public:
Point(std::string& txt);
uint16_t 3dTranslate();
float getX();
float getY();
float getZ();
private:
float x;
float y;
float z;
}