So im making a Frame class and everytime it´s called to make a new one, it is suppose to pass the given info into the new class object. Using SFML:
So something like this:
1 2 3 4 5 6 7 8 9 10 11
ret.addFrame(Frame(img,rectangle));
//and the on the other file
class Frame{
sf::IntRect frame_rect;
sf::Image& frame_img; //This one has to be a pointer
public:
Frame(sf::IntRect& rec, sf::Image& img):frame_rect(rec), frame_img(img)
{};
};
But it says im missing a Frame::Frame function. And i dont know how to work those. How would i go about making one to satisfy these needs?