I'm building drawing project that takes hand drawing from user and draws it with Fourier expansion and epicircles. But I ran project on Visual Studio today again and app is only black screen. I didn't change the code at all. I ran the code on RenderDoc and it's working perfecly in there.
Here is the code that I use for rendering the drawing path:
else if(drawState == DrawState::DRAW) {
// Render objects
if (!circles.empty())
{
for (size_t i = 0; i < circles.size(); i++)
{
circles[i]->render(window);
circles[i]->update(time);
}
path.append(sf::Vertex(circles.back()->lineEnd, sf::Color(237, 34, 93)));
// Update the window
window.draw(path);
}
}
And here is the expected result on RenderDoc.
What I am doing wrong? Is there an error catching method on SFML that I can use?