load map/obj

This commit is contained in:
Joachim Rey 2025-10-09 21:33:37 +02:00
parent 6b454d46ad
commit 8383fc1edf
18 changed files with 305 additions and 43 deletions

20
src/object/plane.h Normal file
View file

@ -0,0 +1,20 @@
#include <cstdint>
#include <string>
#include <vector>
#include "point.h"
class Plane {
public:
Plane(std::string& txt);
std::vector<Point*> getPoints();
uint8_t getR();
uint8_t getG();
uint8_t getB();
uint8_t getA();
uint8_t getL();
friend std::ostream & operator<<(std::ostream& os, Plane& p);
private:
std::vector<Point*> pts;
uint64_t* color;
};