sfml

Connecting the SFML library

Good afternoon dear users, faced with such a problem: I connected the SFML library to visual studio 2019 (I did everything st ... se tell me, what could be the error? P. S 4 libraries in the Debug configuration under Linker -> Input is also connected!

When creating a class object in dynamic memory, the sprite of this object starts moving faster with the desired SFML parameters

#include <SFML/Graphics.hpp> #include <vector> #include <cmath> #include <iostream> #include <list ... an't even imagine... But what should I do to prevent this from happening without changing anything in the update () function?

C++ / SFML | Hieroglyphs instead of Cyrillic | Write text from a variable in Russian

I can't display the Russian text on the screen. I looked through all sorts of sites, found this method: text.setString(L"S ... xt.setString(test_string); window.draw(text); Help me, what to use to output Russian text (Cyrillic), !from a variable!.

Connecting static SFML libraries (Network-to be precise)

I ran into the following problem: I work in VS19 and use SFML libraries for work, I have never worked with static libraries b ... do it myself sort out. So please help me with this issue. Thank you in advance. And thank you for your time on this issue :)

Develop the physics of free fall of an object in c++

I need to write a program that will simulate the situation: A certain object that has its own physical properties. properti ... tools to use? SFML, OpenGL, or something more suitable for this purpose? And is there any literature on the subject. Thanks.

Migrating an application that uses dynamic libraries to another computer

Thank you for coming to the question, perhaps you are the right person who knows the answer, I will be grateful for any help ... eparately? If this is not the correct / not the only solution to this problem, please tell me how it can be solved. Thank you

Simple OpenGL C++animation

I make a 3D game in OpenGL, load models using Assimp, create a window, process keyboard clicks, load textures and sound using ... derstands skeletal animation perfectly, but I need more than just this type of animation. In addition, it is quite difficult.

Implementation of the traveling salesman problem in C++

Tell me which way to think: the program reads a text file in which the map is drawn with numbers (0-road, 1-building, 2-store ... all the stores go back to the warehouse. I think to draw a map in SFML, how do you suggest to build and calculate the route?

Create an image of the program window and save it in PNG format

I would like to click on the button to take a snapshot of the window (in the resolution in which the program window was opene ... .close(); } for (int i = 0; i < 2; i++) { window.draw(line, 2, sf::Lines); window.display(); } } }

Audio signal FFT (C++ and SFML)

I have a question about the FFT of the audio signal. I want to draw a graph based on the audio signal. But I'm not good at th ... raw a shape based on this data? so the samples need to be pre-processed before taking them for the coordinates of the points?

Does not name a type

There is a code like this(I work in Code Blocks): #include <SFML/Graphics.hpp> class Test { sf::Texture testText ... dig? This is the third day I've been struggling with this error P.S. without a class, the code compiles perfectly and works

Displaying text in sfml

Trying to display text in sfml: std::vector<sf::Text> npc_text(12); if (i % 5 == 0) { dot[i] = sf: ... ext : npc_text) { Window.draw(text); } } For some reason, it is not visible. What is the error?

Cube in c++ (with the SFML library)

The program should output the cube and rotate it. I write on a 64x system, but the program is on 32x. I didn't specify the pa ... eteTextures(1, &texture); return 0; } And if you connect the library #include <gl/glu.h>, then errors appear: