started memory cache server

This commit is contained in:
itsmattkc
2019-05-20 03:26:14 +10:00
parent 3d4f12cd8e
commit bdf513585f
11 changed files with 364 additions and 46 deletions
+22 -3
View File
@@ -5,6 +5,7 @@
#include <QObject>
#include "nodes/node.h"
#include "rendering/memorycache.h"
class NodeGraph : public QObject
{
@@ -12,6 +13,12 @@ class NodeGraph : public QObject
public:
NodeGraph();
const int& width();
void set_width(const int& w);
const int& height();
void set_height(const int& h);
/**
* @brief Process the graph
*
@@ -41,12 +48,18 @@ public:
*/
Node* OutputNode();
double Time();
void SetTime(double d);
const rational &Time();
void SetTime(const rational& d);
MemoryCache* memory_cache();
QOpenGLContext* GLContext();
void SetGLContext(QOpenGLContext* ctx);
signals:
void NodeGraphChanged();
void TimeChanged();
void ParametersChanged();
protected:
virtual void childEvent(QChildEvent *event) override;
@@ -54,7 +67,13 @@ protected:
private:
Node* output_node_;
double time_;
MemoryCache memory_cache_;
QOpenGLContext* ctx_;
int width_;
int height_;
rational time_;
};
#endif // NODEGRAPH_H