Questions tagged as 'sfml'

2
answers

How to open an image in C ++ using SFML?

I'm still at the beginning and need to open an image in C ++ using SFML, at the moment I'm using a code that uses the image address, but all this via code and what I need is that the address where the image is be informed by the user. Example...
asked by 06.05.2014 / 23:33
1
answer

How to rotate a set of vertices around a pivot

I have a set of vertices that I need to rotate in an angle Θ around a pivot, but when I apply the transformation the vertices are distorted. What's going on wrong? I got the answer formula from a similar question in this post Here's my code...
asked by 16.03.2017 / 18:33
1
answer

Does not compile, error: use of deleted function

I have a simple project in codeblocks (windows), I am using the SFML library, when trying to call a method that I created where I pass the window and any object, compile I get the following error:    error: use of deleted function 'sf ::...
asked by 20.03.2017 / 22:39
3
answers

Accessing a pixel in SFML

I'm developing a project where I should access a pixel from an image and put them in a new RGB array, for this I am using the SFML library, my difficulty is in logic, I know that a pixel is the smallest point of an image and this library gives m...
asked by 09.05.2014 / 18:46
0
answers

Problem with SFML in Code Blocks Windows 32 bit

I installed SFML in CodeBlocks using the instructions here link Then I compiled the example code from there, which should display a window with a green circle: #include <SFML/Graphics.hpp> int main() { sf::RenderWind...
asked by 14.07.2016 / 01:09
1
answer

How to compile c ++ with SFML library within the project itself

Hello, people who like to program. I'm having a problem that until now researching in the donkey dad (Google) I could not solve. I am doing a little game as part of the evaluation of programming language 1. I do not know how to properly link (co...
asked by 30.09.2015 / 03:10
0
answers

I can not add a single variable on a stack and draw it

I'm trying to make a program that makes a stack of objects using lib stack and then draw what's on top, to do some testing I was doing the following: int main() { RenderWindow wind(VideoMode(VideoMode::getDesktopMode().width, VideoMode:...
asked by 21.11.2018 / 23:23
0
answers

SFML Compile Error in Code :: Blocks

I need to make a game for a college subject using the SFML library and the C ++ language. I followed that tutorial to set up the Code :: blocks, and pasted the following test file indicated in the tutorial: #include <SFML/Graphics.hpp>...
asked by 16.05.2017 / 22:12
0
answers

SFML Style Application Always On Top

I play a game of FPS with the class sniper, but the sniper does not appear the aim as in the other weapons, which disturbs me when looking at the enemy. I did a program that draws a crosshair. It is composed of a transparent window that has the...
asked by 18.03.2017 / 00:17
1
answer

What is the best way to group objects in SFML?

If I have for example 3 different shapes in SFML, and I want to rotate all in relation to a single center, as if these 3 shapes were inside a square, what would be the best shape? Would it be leaving them inside a view and rotating the view? Or...
asked by 25.04.2018 / 22:14