|
|
@ -263,6 +263,17 @@ BaseSurface * SettingsLoader::getQuadSurface(ofxXmlSettings * xmlSettings){ |
|
|
|
quadSurface->setVertices(vertices); |
|
|
|
quadSurface->setTexCoords(texCoords); |
|
|
|
|
|
|
|
// Read properties
|
|
|
|
// Only perspective warping for now
|
|
|
|
bool perspectiveWarping = false; |
|
|
|
if(xmlSettings->tagExists("properties")){ |
|
|
|
xmlSettings->pushTag("properties"); |
|
|
|
perspectiveWarping = xmlSettings->getValue("perspectiveWarping", false); |
|
|
|
xmlSettings->popTag(); // properties
|
|
|
|
} |
|
|
|
QuadSurface * qs = (QuadSurface *)quadSurface; |
|
|
|
qs->setPerspectiveWarping(perspectiveWarping); |
|
|
|
|
|
|
|
return quadSurface; |
|
|
|
} |
|
|
|
|
|
|
|