i have one question, when we create the props array in the main function:
int main()
cut…
{
Prop props [2]{
Prop{LoadTexture (“nature_tileset/Rock.png”), Vector2{600.f,300.f}},
Prop{LoadTexture (“nature_tileset/Log.png”), Vector2{400.f,500.f}}
};
…cut
is the the object (istance of prop) build here or in the next range for loop cycle?
while (!WindowShouldClose())
cut…
for (auto pincopallo : props)
{
pincopallo.Render(Knight.getWorldPos());
}
…cut
in practice is the object constructed from time to time in pincopallo variable?
thanks