mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
New Render Source. Cleanup Source API.
This commit is contained in:
21
Source.h
21
Source.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user