I am doing a graphic tutorial from the Openframeworks book and there seem to be a conflict in the exemple code. Indeed, when I wan to use the x, y coordinates stored in my ofVec2f in a polyline.curveTo(); it says “No matching member function for call to ‘curveTo’”.
Here is the bit of code:
void ofApp::update(){
if (leftMouseButtonPressed) {
ofVec2f mousePos(ofGetMouseX(), ofGetMouseY());
if (lastPoint.distance(mousePos) >= minDistance) {
currentPolyline.curveTo(mousePos); // Here I get the error message
lastPoint = mousePos;
}
}
No, adding cast operators from ofVec2 -> glm::vec3 is problematic since it creates certain ambiguities and some code stopped compiling with very obscure errors
Yes, but from a user perspective, if curveTo is giving me an error, it is probably more helpful to find a documentation that tells me which type should the argument has, instead of the generic T. Isn’t it?