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.
 
 

49 lines
900 B

#pragma once
#include "ofMain.h"
#include "BaseSurface.h"
#include "SurfaceType.h"
#include "HomographyHelper.h"
#include "Vec2.h"
#include "Vec3.h"
namespace ofx {
namespace piMapper {
class GridWarpSurface : public BaseSurface {
public:
GridWarpSurface();
void setup(){};
void draw();
void moveBy(Vec3 v);
int getType();
int getGridRows();
int getGridCols();
int setGridRows(int r);
int setGridCols(int c);
bool hitTest(Vec2 p);
ofPolyline getHitArea();
ofPolyline getTextureHitArea();
void setVertex(int index, Vec3 p);
void setVertices(std::vector<Vec3> v);
void setTexCoord(int index, Vec2 t);
void setTexCoords(std::vector<Vec2> t);
std::vector<Vec3> getVertices();
std::vector<Vec2> getTexCoords();
void createGridMesh();
BaseSurface * clone();
private:
int _gridCols;
int _gridRows;
};
} // namespace piMapper
} // namespace ofx