Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: C++ modules for SFML  (Read 3021 times)

0 Members and 1 Guest are viewing this topic.

jokoon

  • Newbie
  • *
  • Posts: 35
    • View Profile
C++ modules for SFML
« on: March 12, 2016, 02:49:59 pm »
I've seen some video presentations of modules. It seems they're available in VS2015, and I guess they are also available with clang.

I just wanted to know if some of you guys tried them, and to poke around to see how cumbersome it would be to build sfml as modules (for VS2015 is seems to revolve around those .ifc files) for vs2015, clang or both. No idea if GCC support them though...

Reminder: modules essentially allows for much faster building times, and in some way are a "standardized" precompiled header.

Usually, instead of

#include <vector>
#include "SFML/Graphics.hpp"

you do

import std.vector
import sf.graphics

I did not try them yet, so I don't know how trivial it would be to use them for a library like SFML...

What do you think?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: C++ modules for SFML
« Reply #1 on: March 12, 2016, 04:02:03 pm »
Modules in C++ aren't standardized yet. They were expected for C++17, but it seems like they're not likely to make it [1].

Current module implementations are compiler-specific and experimental, and the effort to rewrite SFML is not justified, as long as the specification is not fixed yet.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: