Suggestion: ofFbo and ofRect interoperability

#1

it would be great to have some interoperability between ofFbo and ofRect, as they are both rects.
useful for dragging stuff on screen
I’ll be using now an struct of ofRect and ofFbo

	struct fboRect {
	public:
		ofRectangle rect;
		ofFbo fbo;
		void draw() {
			fbo.draw(rect.x, rect.y, rect.width, rect.height);
		}
	};
#2

Not sure I understand. You can currently do:

	struct fboRect {
	public:
		ofRectangle rect;
		ofFbo fbo;
		void draw() {
			fbo.draw(rect);
		}
	};
1 Like