init
This commit is contained in:
parent
c0513fb17c
commit
4fc6072d11
6 changed files with 43 additions and 0 deletions
3
assets/carte.map
Normal file
3
assets/carte.map
Normal file
|
@ -0,0 +1,3 @@
|
|||
MAP
|
||||
0,0,0:cube
|
||||
0.5,0.5,0.5:light
|
0
main.cpp
Normal file
0
main.cpp
Normal file
0
mapObject.cpp
Normal file
0
mapObject.cpp
Normal file
13
objObject.cpp
Normal file
13
objObject.cpp
Normal 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
12
planeObject.cpp
Normal 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
15
pointObject.cpp
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue