0
볼록 다각형이 나타나야하는 모양과 점 좌표의 수를 입력하도록 사용자에게 요청하려고했지만 어떤 이유로 창이 그려지지 않습니다. 조언을 주시면 감사하겠습니다!어떻게 볼록한 다각형을 표시 할 수 있습니까?
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
for (int i = 0; i < numObjects; i++)
{
window.draw(convex[i]);
}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
{
window.close();
}
window.display();
}
아래 답변을 읽은 후에 게시물을 편집했지만 ... 지금 작동합니까? – Treycos