mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
New Session class to contain the list of sources. Loading and Saving of
session files in XML. Verified deletion of Nodes, Groups and Sources.
This commit is contained in:
11
View.h
11
View.h
@@ -10,20 +10,26 @@ class Source;
|
||||
class View
|
||||
{
|
||||
public:
|
||||
View();
|
||||
|
||||
typedef enum {RENDERING = 0, MIXING=1, GEOMETRY=2, LAYER=3, INVALID=4 } Mode;
|
||||
|
||||
View(Mode m);
|
||||
inline Mode mode() const { return mode_; }
|
||||
|
||||
virtual void update (float dt);
|
||||
virtual void draw () = 0;
|
||||
virtual void zoom (float) {}
|
||||
virtual void drag (glm::vec2, glm::vec2) {}
|
||||
virtual void grab (glm::vec2, glm::vec2, Source*) {}
|
||||
|
||||
virtual void restoreDefaultSettings();
|
||||
virtual void setCurrentSettingsAsDefault();
|
||||
|
||||
Scene scene;
|
||||
|
||||
protected:
|
||||
Group backgound_;
|
||||
Mode mode_;
|
||||
Group *backgound_;
|
||||
};
|
||||
|
||||
|
||||
@@ -55,7 +61,6 @@ public:
|
||||
void setResolution (uint width, uint height);
|
||||
inline FrameBuffer *frameBuffer () const { return frame_buffer_; }
|
||||
|
||||
|
||||
};
|
||||
|
||||
class GeometryView : public View
|
||||
|
||||
Reference in New Issue
Block a user