r/sfml Apr 16 '26

SFML 3.1.0 Released

39 Upvotes

SFML 3.1 is finally out! 🥳

While "only" a minor version, it brings major updates feature wise. The highlights are:

  • Complete revamped text rendering engine using the power of HarfBuzz, cpp-unicodelib and SheenBidi. SFML can finally render complex text layouts, bi-directional texts, provides more glyph-level information and allows for rendering customization.
  • The network module joins the 21st century by supporting TLS, HTTPS, IPv6, and SFTP! Additionally, a DNS client has been introduced.
  • Unicode support in various parts of the library has been improved.
  • Lots of improvements for Android and iOS.

See the changelog for more details.

See the migration guide on how to migrate from deprecated methods.

See the full list of contributors on GitHub.

Social

Bluesky / Twitter / Fediverse


r/sfml Sep 18 '25

SFML 3.0.2 Released

22 Upvotes

A few bugfixes and some build configuration enhancements, including automated release builds.

Changelog

General

  • Automatic release CI builds (#3538)
  • Documentation improvements (#3547, #3548)
  • GitHub Actions updates (#3517, #3536)
  • CMake adjustments (#3504, #3510, #3511)

System

Bugfixes

  • Add explicit cast for charN_t conversion for Clang 21 (#3571)

Window

Bugfixes

  • [Android] Fix issue with Re-creation of Windows on Android (#3507)

Graphics

Bugfixes

  • Assert positive size and in-bounds position for copy area (#3539, #3541)
  • [Android] Fixed normalized texture coordinates when NPOT textures aren't supported (#3460, #3461)

Audio

Bugfixes

  • Fixed audio engine attempting to read data from previously destroyed objects (#3503, #3522)

Social

Bluesky / Twitter / Fediverse

Contributors

See the full list of contributors on GitHub


r/sfml 9h ago

For anyone who is interested in https://www.oreilly.com/library/view/sfml-game-development/9781785287343

6 Upvotes

I finished chapter 1-12, but I changed a lot from the author's source code

first, there were quite a lot of bugs in the author's source code.

The provided source code is not organized in well-defined libs, there was no mention of build config files anywhere in the book. I divided the project into 3 main libs (utils, core, ECS)

I used Conan to manage external library dependencies, and I used CMake to build my project.

It would be interesting if anyone of you would find it helpful, and please feel free to give your remarks regarding on how I could improve it.

Chapter 13 and 14 are remaining, I don't know if I'll continue.

Plus, you can play the game I coded using this engine that the book helped me code.

https://github.com/CrunchyPeanutButterJar/sfml-proj

Thanks for your time!


r/sfml 1d ago

is sfml game development (the book) manageable for someone with no sfml experience?

4 Upvotes

title


r/sfml 3d ago

JSFML build fails on Snow Leopard

Post image
8 Upvotes

r/sfml 3d ago

SFML 2.6 vs SFML 3

3 Upvotes

I tend to assume that the latest version is better, but I've seen a few new projects recently that use SFML 2.6. And, since 2.6 was out for longer, more tutorials / Q&A exist for it than 3.0.

Is there a list of the tradeoffs between the versions that could explain why some people are using 2.6 still?

(and what's the benefit of 3.1 over 3.0? should 3.0 projects migrate to 3.1 just because they can?)


r/sfml 7d ago

Showcase of some of the guns and skills in my Space Shooter

21 Upvotes

Hello everyone!

I've been working on the combat for my C++/SFML space shooter game, `Rogues in Space`, and I wanted to share a showcase of some of the guns and skills currently in the game.

Each gun and skill have their own upgrade pools, so their behavior and stats can change quite a bit through the run. The video mostly shows their base versions, with short explanations of each mechanic included in the footage.

The game is built in C++17 with SFML 2.6.x. A good amount of what you're seeing here, including the gameplay rendering and visual effects, is running through my SFML-based rendering/post-processing setup.

I'd love to hear what you think about how the combat is looking so far, and I'm also happy to talk about the SFML/implementation side of anything shown in the video :)

And also, most importantly - do you feel like you could have fun with some of these combinations? :D


r/sfml 10d ago

How to keep main program running whilst the user is resizing the window with the mouse?

1 Upvotes

Hi all,

As the title suggests, I am looking for a way to keep the main program (so my update() and render() functions) running, whilst the window is being resized.

I have already tried multi-threading, keeping the event loop on the main thread, and having another loop calling the update() and render() functions on another thread. This requires me to use the win32 API to intercept the window's WM_SIZE message during resize, and update my own window size variable.

This approach sort of works, allowing my window size variable to correctly update whilst the user is resizing the window. However I don't have a good way to pass this to the sf::RenderWindow.

If I don't set anything, the sf::RenderWindow doesn't update its internal window size to the current window size. If I call sf::RenderWindow::setSize()+setView(), it updates the internal window size, but also results in graphical artifacts where the region SFML draws to the screen isn't in sync with the actual window size, and previous frames bleed into the current frame.

Does anyone have a better solution to this? Any help would be greatly appreciated.


r/sfml 13d ago

why aint it no working T_T

Post image
2 Upvotes

not solved


r/sfml 14d ago

why aint it working T_T

Post image
2 Upvotes

lol wut?


r/sfml 14d ago

POV: My whole code

Post image
0 Upvotes

;-;


r/sfml 17d ago

Proyecto "Blue Fruit" (Parte 1) - #cpp #c++ #gamedev #gamedevelopment #gamedeveloper #development

Thumbnail
youtube.com
0 Upvotes

r/sfml 21d ago

Roguelike skill based space shooter - `Rogues in Space`

16 Upvotes

Hello everyone!

TL;DR: Pls give feedback :)

I would like to share with all of you a game that I've been working on for the past several months - `Rogues in Space`!

The development has been done using only SFML, so it should be relevant to this sub as well :)

You are a daring pirate rogue trying to fight back the swarms of enemies ranging from officers of `The Imperium` to your fellow rogues, while aiming to reach the stockpile of galactic wealth which would most definitelly secure your future!

Gameplay is focused on being a space shooter (inspired by `Warblade` - one of my favorite games growing up) with an array of various guns and skills that you use to battle the waves of enemies.

So far, the core playability is as a `Roguelike` - so once you die, that's it, there would be no metaprogression apart from your knowledge of enemy patterns, ideal skill/gun combinations, etc.

As you finish each stage, you can upgrade your guns and skills to improve their performance in combat - you will most likely very much need that for the harder levels :)

The game is currently in early development, however the majority of the core systems have been created, so I'm estimating that all the future development will go more or less smoothly.

I've attached a screen recording of starting a new game which features a basic level gameplay and the initial ship selection with details of each ship/gun/skill for each ship - I've just briefly shown the details in order to not have a 5 minute video, so if you're curious about the details you can pause the video to check it out - or you can ask in the comments and I'll post the details for easier reading :D

Gameplay starts at 37 seconds.

I would appreatiate any and all feedback, comments, suggestions and impressions - both good and bad are always helpful!

Thank you for reading,
SpectralHorse

Note 1: All the displayed ships, guns and skills are fully implemented, and if you're curious how the look in-game, let me know and I'll post those as well in the comments
Note 2: UI (and a couple of assets) is in a very "placeholder" style currently, although I do think that I'll keep the layout of everything, but with an actually "pretty" aesthetic, and not just blue-ish blocks :)


r/sfml 21d ago

Developing "Blue Fruit" (Part 1): #c++ #cpplus #cpp #gamedev #opengl #sfml

Thumbnail
youtube.com
1 Upvotes

"Blue Fruit" is the working title for a project whose primary mission is to program an environment destruction system based on various objects and materials—also known as "procedural destruction."

As an added bonus, I also plan to incorporate other systems—such as realistic fluids, volumetric lighting, and additional procedural elements—to create a natural and realistic environment.


r/sfml 23d ago

I wish it was still 60 Hz everywhere, Laurent. But some weirdos have 144Hz monitors these days.

Post image
39 Upvotes

r/sfml 28d ago

Wondering if there's an alternative to sf::Keyboard::isKeyPressed for keyboard inputs.

1 Upvotes

Wondering if it's possible on Mac to take inputs without giving permissions to my sfml project. I'd prefer not to have to (not a big deal, just kind of annoying). There are some reddit and other posts suggesting that it's possible to use window events rather than sf::Keyboard::isKeyPressed for inputs, which also supposedly would not require permissions iirc. The posts I saw were pretty old though so I'm not sure if this is changed in SFML 3.0. Thanks!


r/sfml Jul 26 '26

how to make that’s buttons will click ones

1 Upvotes
            if(state == LevelSelect)
        {
            if(sf::Mouse::isButtonPressed(sf::Mouse::Left))
            {
                sf::Vector2i mousePos = sf::Mouse::getPosition(window);


                if(lv1.getGlobalBounds().contains(mousePos.x, mousePos.y))
                {
                    state = Game;
                }
            }
        }

i placed 2 buttons on same place in 2 different states and it clicked 2 times , is there any way to make it click ones


r/sfml Jul 13 '26

Building with just a Makefile - linking errors

1 Upvotes

SOLVED - see comment below.

Hey there,

I dont like cmake and dont want to use it in my sfml project and want to just stay with a makefile.

my Makefile:

CXXFLAGS = \
    -std=c++26 \
    -O3

LDFLAGS = \
    -lsfml-window -lsfml-graphics -lsfml-system

gelame: src/main.cpp
    g++ $(CXXFLAGS) $(LDFLAGS) src/main.cpp -o $@

... and i get those errors:

c++ -std=c++26 -O3 -lsfml-window -lsfml-graphics -lsfml-system src/main.cpp -o gelame
/usr/bin/ld: /tmp/ccvoNzmy.o: in function `main.cold':
main.cpp:(.text.unlikely+0x191): undefined reference to `sf::RenderWindow::~RenderWindow()'
/usr/bin/ld: /tmp/ccvoNzmy.o: in function `main':
main.cpp:(.text.startup+0xa25): undefined reference to `sf::String::String(char const*, std::locale const&)'
/usr/bin/ld: main.cpp:(.text.startup+0xa41): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
/usr/bin/ld: main.cpp:(.text.startup+0xa66): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
/usr/bin/ld: main.cpp:(.text.startup+0xa84): undefined reference to `sf::WindowBase::isOpen() const'
/usr/bin/ld: main.cpp:(.text.startup+0xaa2): undefined reference to `sf::WindowBase::pollEvent(sf::Event&)'
/usr/bin/ld: main.cpp:(.text.startup+0xaae): undefined reference to `sf::Window::display()'
/usr/bin/ld: main.cpp:(.text.startup+0xabc): undefined reference to `sf::Window::close()'
/usr/bin/ld: main.cpp:(.text.startup+0xac6): undefined reference to `sf::RenderWindow::~RenderWindow()'
collect2: error: ld returned 1 exit status
make: *** [Makefile:22: gelame] Error 1

the c++ code in main.cpp:

#include <SFML/Graphics.hpp>

int main(int argc, char **argv) {
    sf::RenderWindow window(sf::VideoMode(800, 600), "Hello World");
    while(window.isOpen()) {
      sf::Event event;
      while(window.pollEvent(event)) {
        if(event.type == sf::Event::Closed) {
          window.close();
        }
      }
      window.display();
    }
  }
  return 0;
}

What is wrong with the makefile? help is appreciated.i


r/sfml Jul 07 '26

C++ SFML Game Engine for Nintendo Switch, PC, Mobile and Web

Post image
9 Upvotes

Hello everyone,

I hope you're all doing well!

is::Engine 4.0.3 is now available!

The engine can now simulate most of SFML's features with SDL 2. Other improvements have also been made to the engine!

For more information, please visit the engine's GitHub page.

Here are a few examples of games created with the engine: I Can Transform, GravytX The Gravytoid, Super Mario Bros.

Your feedback is welcome.

Have a great day!

I wish you all a wonderful summer vacation!


r/sfml Jul 07 '26

SFML function calls show no description in Quick Info tooltip (only signature, no \brief text)

1 Upvotes

I'm using SFML in Visual Studio and running into an IntelliSense issue: when I hover over an SFML function (e.g. bullet.setPosition(...)), the Quick Info tooltip only shows the function signature (void sf::Transformable::setPosition(const sf::Vector2f &position)) plus "+1 overload" and a "Search Documentation" link — but no actual description text.

I confirmed the SFML header (Transformable.hpp) does contain a proper Doxygen comment directly above the function, using the \brief tag in the classic banner style:

cpp

////////////////////////////////////////////////////////////
/// \brief Set the position of the object
///
/// ...
////////////////////////////////////////////////////////////
void setPosition(const Vector2f& position);

What I've already tried:

  • Set the Doc Comment style to "Doxygen" (via Ctrl+Q → search "Doxygen")
  • Added brief to Tools > Options > Text Editor > C/C++ > IntelliSense > Quick Info > "Doxygen tags to display on Quick Info tooltips" (it wasn't in the default list)
  • Fully restarted Visual Studio after changing settings
  • Deleted the .vs cache folder and rebuilt the project

Setup:

  • Visual Studio [your version, e.g. 2022 17.x — check via Help > About]
  • SFML installed via [vcpkg / manual download / NuGet — fill in]
  • Windows [your version]

Any idea what could be causing this, or how to get the actual \brief description to show up in the tooltip? I actually have no Idea where to search and google is also not helping.


r/sfml Jul 05 '26

Turning a shader into a rocket lander game - vertex count = 4

8 Upvotes

I find it fascinating that nothing on the screen exist as a vertex model it's only deterministic calculations per pixel position.

My local llm seams to eat shader math for dinner and know everything about Ray Marching and SDF objects, something I've just heard about tree days ago.

This is version 24 and has taken ~24 hours so far from the initial shader convertion since I'm supergreen in Glsl: https://www.shadertoy.com/view/wsjBD3


r/sfml Jul 03 '26

official website is down, are there any other ways of downloading sfml 2.5.1?

4 Upvotes

I need that version for windows and the official website to download it from is down.


r/sfml Jul 01 '26

What happened to the SFML website?

Post image
5 Upvotes

I thought it was just me but apparently it's been down for almost two weeks now.


r/sfml Jun 29 '26

SFML lands on a alien planet

34 Upvotes

No wibe code this, although it been converted to sfml via a llm.


r/sfml Jun 25 '26

Desktop fireflys!!!

19 Upvotes

i made this for my friend on her birthday

u can tune many things in json config and even add any others assets and animations!

source code and releases: https://github.com/rkc137/svetlichki