@javl wrote:
Before I create an issue on Github, I want to check if I might be doing something wrong.
The docs for
ofPolyline
say:ofPolyline(...) Creates an ofPolyline from a vector of ofVec2f or ofPoint objects.`
This works:
vector<ofPoint> pts; pts.push_back(ofPoint(0, 0)); pts.push_back(ofPoint(100, 100); ofPolyline line(pts);
But doing the same with ofVec2f crashes on the last line:
vector<ofVec2f> vecs; vecs.push_back(ofVec2f(0, 0)); vecs.push_back(ofVec2f(100, 100)); ofPolyline line(vecs);
Am I missing something?
Posts: 5
Participants: 2