English 中文(简体)
What are the Gotchas and Issues I should be aware of with SFML?
原标题:
  • 时间:2009-11-15 00:31:02
  •  标签:
  • sfml

I ve been using SDL for a while to prototype small things and to learn more about graphics programming.

Then I saw SFML and wanted to give it a try, saw that it was more object oriented and fixed some issues I felt SDL had.

But since I know little about the library itself, what are it s main flaws and other issues that I should be aware of?

Currently I m liking it, good tutorial and most things just seem to work.

问题回答

The biggest issue that has ever affected me is the crash involving the default font when ending a program. This is a fairly well-known bug that you can read about in the SFML forums. As far as I know, this bug is fixed for the 2.0 version of SFML but not for 1.x versions.

For other bugs (along with feature requests), you can check out the SFML Roadmap.

Well, now SFML 2.x is quite standard.

I have 2 main issues with 2.1:

  • The program can crash when ending with Windows XP, because of a bug in the audio module. It should be corrected now, but not in the 2.1 and the fix is out of scope for the 2.2 (to come) version. -> You can compile the last SFML version, or use something else for Audio (OpenAL, SDL...).

  • RenderTextures don t work correctly on Mac : I haven t found any workaround, so I just don t use RenderTextures now.





相关问题
Input system reference trouble

I m using SFML for input system in my application. size_t WindowHandle; WindowHandle = ...; // Here I get the handler sf::Window InputWindow(WindowHandle); const sf::Input *InputHandle = &...

Qt Creator / QMake Linker Libraries

I m using SFML, and I want to use Qt Creator in conjunction with it. When I m compiling manually, I supply the following arguments to the linker -lsfmlsystem -lsfmlwindow. How do I do this if I m ...

SFML Plasma Sprite Effect?

Is there a way to create a plasma effect in SFML that doesn t slow my framerate to a crawl?

How can you animate a sprite in SFML

Lets say I have 4 images and I want to use these 4 images to animate a character. The 4 images represent the character walking. I want the animation to repeat itself as long as I press the key to ...

Algorithm for count-down timer that can add on time

I m making a general timer that has functionality to count up from 0 or count down from a certain number. I also want it to allow the user to add and subtract time. Everything is simple to implement ...

SFML SetFramerateLimit Not Limiting Frame Rate

Compiler: Visual C++ OS: Windows 7 Enterprise For some reason, Window::SetFramerateLimit isn t limiting the frame rate in the app I m working on, but it works fine for others. The framerate is capped ...

Race car game, car moving faster on faster computer

I understand why it does that but I don t really have any idea of how to prevent that. So the scenario is, every frame I move the car by a certain of predefined pixels. What happens is when I go on ...

热门标签