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.
 
 

33 lines
499 B

#pragma once
#include "ofMain.h"
#include "BaseSurface.h"
#include "SurfaceType.h"
#include "HomographyHelper.h"
namespace ofx {
namespace piMapper {
class GridWarpSurface : public BaseSurface {
public:
GridWarpSurface();
void draw();
void moveBy(ofVec2f v);
int getType();
bool hitTest(ofVec2f p);
ofPolyline getHitArea();
ofPolyline getTextureHitArea();
private:
int _gridCols;
int _gridRows;
void createGridMesh();
};
} // namespace piMapper
} // namespace ofx