0

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?

Laex
  • 11
  • 1
  • @drescherjm But code is working until today. I didn't change anything. I updated my drivers and tried again but it didn't change anything. RenderDoc is attaching pipeline to executable and it's working again. I don't know why this is happening. – Laex Jan 14 '23 at 22:23

0 Answers0