36 lines
588 B
C++
36 lines
588 B
C++
#pragma once
|
|
|
|
#include "raylib.h"
|
|
#include "datatypes.h"
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace VISEQ::GRAPH {
|
|
class GraphItem{
|
|
|
|
public:
|
|
GraphItem() {newId(-1);}
|
|
GraphItem(const GraphItem& G) {
|
|
newId(-1);
|
|
graphItemType = G.graphItemType;
|
|
}
|
|
GraphItemType graphItemType;
|
|
|
|
int id = 0;
|
|
|
|
void newId(int start){
|
|
static int _id;
|
|
if(start > -1) _id = start;
|
|
id = _id;
|
|
_id++;
|
|
}
|
|
|
|
virtual void draw(Vec2Df mouse, Camera2D cam) {};
|
|
virtual GraphItemType getType() {return graphItemType;}
|
|
virtual ~GraphItem() = default;
|
|
|
|
};
|
|
|
|
}
|
|
|