1
Graphics / Re: beginner problem MapRenderer
« on: June 07, 2013, 09:12:36 pm »
I changed this line of code (line 194 of the C++ tutorial):
rt.draw(&vertices[0], vertices.size(), sf::PrimitiveType::Quads);
into this:
rt.draw(&vertices[0], vertices.size(), sf::PrimitiveType::Quads, states);
and now it works.... If this is wrong in the tutorial, it probably should be fixed, or it might keep beginners like me searching for a while on the reason why their tilemap texture is not showing.
rt.draw(&vertices[0], vertices.size(), sf::PrimitiveType::Quads);
into this:
rt.draw(&vertices[0], vertices.size(), sf::PrimitiveType::Quads, states);
and now it works.... If this is wrong in the tutorial, it probably should be fixed, or it might keep beginners like me searching for a while on the reason why their tilemap texture is not showing.