Files
viseq/src/graph-item.h
T

19 lines
363 B
C++
Raw Normal View History

2024-10-30 14:55:24 +01:00
#pragma once
#include "raylib.h"
2024-10-30 14:55:24 +01:00
#include "datatypes.h"
#include <memory>
2024-10-30 14:55:24 +01:00
#include <vector>
class GraphItem{
public:
std::vector<std::shared_ptr<GraphItem>> neighbors;
GraphItemType graphItemType;
virtual void draw(Vec2D<float> mouse, Camera2D cam) = 0;
virtual GraphItemType getType() {return graphItemType;}
virtual ~GraphItem() = default;
2024-10-30 14:55:24 +01:00
};