I am trying to make a lunar lander type game in opengl/c++ but i keep getting the "No appropriate default constructor available error, and i cant figure out why.
So the problem is coming from the background i am trying to create,
Main.cpp where i am getting the error, which is for this line :Background background; I have done this so i can use it in the display function, the same way in which i done it for ground and the lander, but this time it is causing the problem
Background background; <- here, you try to create a Background object using a constructor that takes no arguments (known as a default constructor,) but nowhere in your code do you provide such a constructor. Background has a single constructor that takes exactly three arguments.
so would i change the Background ground; to Background (parameters) background; or create another constructor in the background.cpp which i didnt think you could do?