heavy restructuring with smart pointers, not finished

This commit is contained in:
Sebastian
2024-10-31 01:43:00 +01:00
14 changed files with 3317 additions and 390 deletions
+16 -4
View File
@@ -1,7 +1,6 @@
#pragma once
#include "datatypes.h"
#include "raylib.h"
class Movable{
@@ -17,9 +16,22 @@ class Movable{
Vec2D<float> position;
Vec2D<float> direction;
virtual void update(int fps) {};
Vec2D<float> drag_offset;
bool in_rect = false;
bool picked_up = false;
bool dragging = false;
bool hover_connect = false;
bool hovering = false;
bool connecting = false;
bool selected = false;
bool highlighted = false;
bool copied = false;
bool erase = false;
virtual void setPosition(Vec2D<float> _position) {position = _position;}
virtual void update(double frametime) {};
virtual void update() {};
virtual void draw(Vec2D<float> *mouse, Camera2D *cam) {};
};