Untitled

 avatar
unknown
plain_text
a year ago
253 B
5
Indexable
drawing.cpp

#include "drawing.h"

Drawing::Drawing() {}

Drawing::~Drawing() {
    // Clean up memory for all shapes
    for (Shape* shape : shapes) {
        delete shape;
    }
}

void Drawing::AddShape(Shape *shape) {
    shapes.push_back(shape);
}
Editor is loading...
Leave a Comment