CSFML
CSFML copied to clipboard
Official binding of SFML for C
I cannot figure out how to load an sRGB texture from disk (or memory, or image) in CSFML. In SFML, if I understand it correctly, you would do: ```c++ sf::Texture...
We can now call sfShader_createFromFile/Memory/Stream with only a geometry file/memory/stream.
For languages with error handling facilities, it would be useful to be able to capture messages output to `sf::err()` from CSFML. I suggest an API like: ``` C sfErrorCapture* sfErrorCapture_start();...
It would be a good thing to have a small example program, that could also be used to check that the library works (this would be useful to detect incompatibilities...
https://github.com/SFML/CSFML/blob/fb9b3aeab729ef58ff704b87504bc28771770fa7/src/SFML/Graphics/RenderWindow.cpp#L194-L198 A common pattern in the implementation of the library is that we have two stack variables that represent the same thing but one type is from the `sf::` namespace...
Closes #208 These are C++ source code files. To be consistent with SFML they should use an .hpp extension. This also has the benefit of making it easier to readers...
We can save code and remove the ugly `This` parameter if we instead inherit from `sf::` types. Here's an example: https://github.com/SFML/CSFML/compare/master...simplify_sf_buffer
CSFML is a big enough codebase that we'd benefit significantly from clang-format and clang-tidy enforcing a higher degree of code quality and consistency.
The generated CSFML documentation doesn't actually document any functions. It only seems to document structures which you can see under the "Classes" tab. This may be related to https://github.com/SFML/SFML/issues/2813. I...
All of the headers in src/ are actually C++ code since they use C++ headers and C++ symbols. We should use a .hpp extension for such files instead of .h.