Finished surfaces

This commit is contained in:
Vulpovile
2021-03-14 18:34:31 -07:00
parent 049ef1a8d7
commit ca8fc41228
6 changed files with 280 additions and 20 deletions

View File

@@ -49,6 +49,7 @@ public:
void setCFrame(CoordinateFrame);
void setSize(Vector3);
void setShape(Enum::Shape::Value shape);
void setChanged();
//Collision
bool collides(PartInstance * part);

9
src/include/Faces.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef FACES_H
#define FACES_H
#define TOP 0
#define BOTTOM 1
#define LEFT 2
#define RIGHT 3
#define FRONT 4
#define BACK 5
#endif

View File

@@ -3,5 +3,5 @@
#include "Enum.h"
#include "DataModelV2/Instance.h"
void renderShape(const Enum::Shape::Value& shape, const Vector3& size, const Color3& ncolor);
void renderSurface(const char face, const Vector3& size, const Enum::SurfaceType::Value& surface, const Enum::Controller::Value& controller);
void renderSurface(const char face, const Enum::SurfaceType::Value& surface, const Vector3& size, const Enum::Controller::Value& controller, const Color3& color);
#endif