Most voted "sfml" questions
Simple and Fast Multimedia Library (SFML) is an object-oriented, multi-platform library and is free. It is a multimedia API written in C++ by Laurent Gomila. The goal of this API is to be a more modern alternative to SDL with a greater emphasis on OO.
Learn more…14 questions
Sort by count of
-
3
votes2
answers1301
viewsHow to open a C++ image using SFML?
I am still at the beginning and need to open a C++ image using SFML, at the moment I am using a code that uses the address of the image, but all this via code and what I need is that this address…
-
3
votes3
answers258
viewsAccessing an SFML pixel
I am developing a project where I must access pixel of an image and put them in a new matrix in RGB, for this I am using the SFML library, my difficulty is in logic, I know that a pixel is the…
-
3
votes1
answer169
viewsHow to rotate a set of vertices around a pivot
I have a set of vertices that I need to rotate at an angle Θ around a pivot, but when I apply the transformation the vertices distort. What’s wrong? I got the answer formula for a similar question…
-
3
votes1
answer244
viewsDo not compile, error: use of Deleted Function
I have a simple project on codeblocks (windows), I’m using the library SFML, when trying to call a method I created where I pass the window and any object, in the act of compiling I get the…
-
2
votes0
answers54
viewsProblem with SFML in Code Blocks Windows 32 bits
I installed SFML in Codeblocks using the instructions here http://www.sfml-dev.org/tutorials/2.0/start-cb.php So I compiled the sample code from there, which should display a window with a green…
-
1
votes1
answer319
viewsHow to compile c++ with SFML library within the project itself
Hello people who like to program. I have a problem that so far searching on the father of donkeys (Google) I could not solve. I’m doing a little game as part of the evaluation of the programming…
-
1
votes0
answers51
viewsAlways On Top Style SFML Application
I play an FPS game with the sniper class, but the sniper does not appear as the other weapons, which hinders me when targeting the enemy. I made a program that draws a sight on the screen. It is…
-
1
votes0
answers204
viewsSFML build error in Code::Blocks
I need to make a game for a college subject using the SFML library and the C++ language. I followed this tutorial to configure the Code::Blocks, and pasted the following test file indicated in the…
-
1
votes0
answers25
viewsI’m not able to add the same variable to a stack and draw it
I’m trying to make a program that makes a stack of objects using lib stack and soon after draw whatever is on top, to do some tests I was doing the following: int main() { RenderWindow…
-
0
votes1
answer602
viewsHow to convert RGBA pixels to characters?
having access to the pixels of any image through the SFML library, my goal is captured and convert them to characters by placing in a new matrix (image) and then display it. For that I checked the…
-
0
votes1
answer84
viewsHow to listen to events without opening a window?
I’m doing a simple project of console people who are going to make Keyboard hooking, but I don’t want you to open the SFML Opengl window. There is a way to listen to SFML events without opening a…
-
0
votes1
answer40
viewsWhat is the best way to group objects in SFML?
If I have for example 3 different shapes in SFML, and I want to rotate them all relative to a single center, as if these 3 shapes were inside a square, what would be the best shape? Would it be…
-
0
votes1
answer274
viewsINTERNAL COMPILER ERROR Visual Studio 2017 with SFML
I’m having a problem compiling a code in visual studio 2017 with SFML libraries, when I try to compile it gives the following error: INTERNAL COMPILER ERROR in 'C: Program Files (x86) Microsoft…
-
0
votes0
answers7
viewsError loading audio to SFML
My IDE is Clion when I try to open an audio file that way: Music menuMusic; if (!menuMusic.openFromFile("menu.wav")) return EXIT_FAILURE; It provides the this error: Failed to open sound file…