ofxPiMapper fixed for C++17 & oF 12.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

46 lines
910 B

#pragma once
#include "ofMain.h"
#include "BaseSurface.h"
#include "SurfaceType.h"
#include "Vec2.h"
namespace ofx {
namespace piMapper {
// TODO: Transform this into CircleSurface.
class HexagonSurface : public BaseSurface {
public:
HexagonSurface();
void setup();
void setup(
vector <Vec2> & verts,
vector <Vec2> & coords,
BaseSource * newSource);
void draw();
void setVertex(int index, Vec2 p);
void setVertices(vector<Vec2> v);
void setVertices(vector<ofVec3f> v);
void setTexCoord(int index, Vec2 t);
void setTexCoords(vector<Vec2> t);
void moveBy(Vec2 v);
int getType();
bool hitTest(Vec2 p);
Vec2 getVertex(int index);
Vec2 getTexCoord(int index);
ofPolyline getHitArea();
ofPolyline getTextureHitArea();
vector <ofVec3f> & getVertices();
vector <Vec2> & getTexCoords();
BaseSurface * clone();
};
} // namespace piMapper
} // namespace ofx