Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于某种奇怪的原因,我的 SFML 程序在我将鼠标悬停在它上面之前不会渲染任何东西,或者按下一个键或执行任何符合事件的操作。
我该如何解决?
当您将鼠标悬停时,这会导致向应用程序发送一条消息。所以可能你的主循环写错了,所以在收到消息之前它不会呈现。但这是一个随机猜测,您应该考虑始终将您的代码与您的问题一起发布。