Added surface selector, made faces reflect G3D faces
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
||||
void setSize(Vector3);
|
||||
void setShape(Enum::Shape::Value shape);
|
||||
void setChanged();
|
||||
void setSurface(int face, Enum::SurfaceType::Value surface);
|
||||
|
||||
//Collision
|
||||
bool collides(PartInstance * part);
|
||||
|
||||
@@ -1,9 +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
|
||||
#define TOP 3
|
||||
#define BOTTOM 5
|
||||
#define LEFT 1
|
||||
#define RIGHT 4
|
||||
#define FRONT 0
|
||||
#define BACK 2
|
||||
#endif
|
||||
@@ -27,6 +27,8 @@ public:
|
||||
bool isMouseOnScreen();
|
||||
bool isMouseDown();
|
||||
void setMouseDown(bool mouseDown);
|
||||
G3D::Ray * getRay();
|
||||
G3D::Ray getLastRay();
|
||||
private:
|
||||
bool mouseDown;
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@ class SurfaceTool :
|
||||
public Tool
|
||||
{
|
||||
public:
|
||||
SurfaceTool(Enum::SurfaceType::Value surface, int extraParam); //OnSelect?
|
||||
SurfaceTool(int surface, int extraParam); //OnSelect?
|
||||
~SurfaceTool(void); //OnDeselect?
|
||||
void onButton1MouseDown(Mouse);
|
||||
void onButton1MouseUp(Mouse);
|
||||
@@ -15,6 +15,6 @@ public:
|
||||
void onKeyDown(int key);
|
||||
void onKeyUp(int key);
|
||||
private:
|
||||
Enum::SurfaceType::Value surface;
|
||||
int surface;
|
||||
int param;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user