Let’s say I create a PolygonInfo object like this:
PolygonInfo inf;
inf.setFilename("images/dots_big.png");
inf.triangles.vertCount = 3;
inf.triangles.verts = new V3F_C4B_T2F[inf.triangles.vertCount];
inf.triangles.indexCount = 3;
inf.triangles.indices = new unsigned short[inf.triangles.indexCount];
Will the PolygonInfo class itself delete the arrays stored in verts and indices, or will I need to do that myself? If I need to handle it myself, I could use a smart pointer for them, right? (Like std::unique_ptr?)