Simple and Fase Media Library (SFML) 是一個由 C++ 寫成的跨平台(cross-platfrom)的用於遊戲、多媒體應用開發的 Library,有多個語言的綁定 (Binding) ,分成幾大模塊:系統、視窗、圖形、音訊跟網路。
- SFML 分成幾大模塊
System一些基礎建設,例如:向量(vector)、字串、thread、timerWindow管理視窗以及輸入(鍵盤、滑鼠、搖桿等)及 OpenGLGraphics硬體加速的 2D 圖形:sprite, text, shapesAudio音訊、錄音、3D音效NetworkTDP 與 UDP socket 與 HTTP 跟 FTP
Installation 環境設置
本人使用 msys2
先安裝 msys2

更新完 msys2 之後
- 開啟
MSYS2 MinGW 32-bit(如上圖) - 安裝 sfml
pacman -S mingw32/mingw-w64-i686-sfml
- 開啟
使用範例編譯
Example 範例
1 |
|
Useful Links 實用連結
SFML Tutorials 教學文
https://www.sfml-dev.org/tutorials/2.5/善用 google hacking:
xxx site:https://en.sfml-dev.org/forums/index.phpSFML Docs 文檔
https://www.sfml-dev.org/documentation/2.5.1/Q: 不能搜尋?
- A: 善用 google hacking:
xxx site:https://www.sfml-dev.org/documentation/2.5.1
- A: 善用 google hacking:
如果你覺得這篇文章很棒,請你不吝點讚 (゚∀゚)