Browse Source

Add `getPerspectiveWarping()`

master
Krisjanis Rijnieks 10 years ago
parent
commit
ba463f6db5
  1. 4
      src/Surfaces/QuadSurface.cpp
  2. 1
      src/Surfaces/QuadSurface.h

4
src/Surfaces/QuadSurface.cpp

@ -287,5 +287,9 @@ void QuadSurface::setPerspectiveWarping(bool b){
_perspectiveWarping = b;
}
bool QuadSurface::getPerspectiveWarping(){
return _perspectiveWarping;
}
} // namespace piMapper
} // namespace ofx

1
src/Surfaces/QuadSurface.h

@ -37,6 +37,7 @@ class QuadSurface : public BaseSurface {
vector <ofVec2f> & getTexCoords();
void setPerspectiveWarping(bool b);
bool getPerspectiveWarping();
private:
void calculate4dTextureCoords();

Loading…
Cancel
Save