Untitled

mail@pastecode.io avatar
unknown
plain_text
17 days ago
253 B
2
Indexable
Never
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);
}
Leave a Comment