hi, i am wondering how to do this or a similar implementation
eg.
i have had little success,Code:class shape{} class square : public shape{} class triangle : public shape{} std::vector<shape> vector; vector.push_back(square); vector.push_back(triangle); vector[0].render(); //draws a square vector[1].render(); //draws a triangle
anyhelp would be apretiated,
p3p