New Render Source. Cleanup Source API.

This commit is contained in:
brunoherbelin
2020-05-21 23:32:21 +02:00
parent 5b489dd2df
commit 16fa3300b8
19 changed files with 191 additions and 42 deletions

View File

@@ -59,7 +59,7 @@ public:
virtual bool failed() const { return false; }
// every Source shall have a frame buffer
virtual FrameBuffer *frame() const = 0;
virtual FrameBuffer *frame() const;
// every Source shall be rendered into the frame buffer
virtual void render() = 0;
@@ -125,4 +125,23 @@ private:
};
class RenderSource : public Source
{
public:
RenderSource();
~RenderSource();
// implementation of source API
void render() override;
void accept (Visitor& v) override;
void reconnect();
protected:
void init() override;
Surface *sessionsurface_;
};
#endif // SOURCE_H